This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
1. Make sure you have `uv` install. (e.g. `brew install uv`) | |
2. Setup Python venv `uv venv && source .venv/bin/activate` | |
3. Setup the model API key (e.g. `export ANTHROPIC_API_KEY=<your_api_key>`) | |
4. Run it! `uv run python tiny_agent.py` | |
""" | |
import asyncio | |
from pydantic_ai import Agent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Need install netcat first | |
while true; do echo -ne "HTTP/1.0 200 OK\r\nContent-Length: 3\r\n\r\nok\n" | nc -l -p 8001; done |