Skip to content

Instantly share code, notes, and snippets.

@tobiasraabe
tobiasraabe / agent.py
Last active August 15, 2025 11:25
pydantic-ai agent with LLM call in tool and inspect-ai
"""Example of using pydantic-ai and inspect-ai together.
Sorry, untested!!!
.. code-block:: console
# Run the script
$ uv run --script agent.py
To run either the agent or evaluations with inspect-ai, you need to modify
@tobiasraabe
tobiasraabe / all-repos-examples.md
Last active February 4, 2023 13:32
Examples for commands with all-repos

all-repos-examples

Here are some examples which show how to use all-repos. Maybe you can also draw inspiration from all-repos-incantations.

Adding skip for concurrent builds to github.yml

Add the following to your continuous integration workflow after the definition of the name (here "name: Continuous Integration Workflow")

@tobiasraabe
tobiasraabe / python-downloader.py
Last active March 8, 2025 10:47
Script to download files, resume downloads and validate downloads. Everything wrapped with a beautiful progressbar.
import click
import hashlib
import requests
from pathlib import Path
from tqdm import tqdm
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])