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 / 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'])