Skip to content

docs: Add Pydantic AI sandbox agent example#60

Open
hsteude wants to merge 1 commit into
mainfrom
feature/pydantic-ai-sandbox-agent
Open

docs: Add Pydantic AI sandbox agent example#60
hsteude wants to merge 1 commit into
mainfrom
feature/pydantic-ai-sandbox-agent

Conversation

@hsteude

@hsteude hsteude commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a lightweight Pydantic AI example that exposes prokube Agent Sandboxes as agent tools
  • Include tools for Python execution, shell commands, and file read/write/list operations under /workspace
  • Document managed Lab and external API-key configuration

Testing

  • python -m py_compile sandboxes/pydantic-ai-code-agent/agent.py
  • git diff --check
  • PYTHONPATH=sandboxes/pydantic-ai-code-agent OPENAI_API_KEY=test-key uv run --with 'pydantic-ai>=2.0.0' --with 'git+https://github.com/prokube/prokube-sdk.git@v0.1.3' python -c 'import agent; a=agent.build_agent(); print(type(a).name)'

Note: I did not run a live LLM completion because that requires model credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant