Skip to content

feat(python): add PydanticAI integration and example#210

Merged
chaliy merged 1 commit intomainfrom
claude/python-bash-tool-example-vu3dQ
Feb 17, 2026
Merged

feat(python): add PydanticAI integration and example#210
chaliy merged 1 commit intomainfrom
claude/python-bash-tool-example-vu3dQ

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Feb 17, 2026

Summary

  • Add bashkit.pydantic_ai module with create_bash_tool() wrapping BashTool as a PydanticAI Tool
  • Add examples/pydantic_ai_bash_agent.py demonstrating a FizzBuzz coding agent
  • Add pydantic-ai optional dependency group (pip install bashkit[pydantic-ai])

Test plan

  • Built Python bindings and verified create_bash_tool() returns a valid PydanticAI Tool
  • Ran examples/pydantic_ai_bash_agent.py end-to-end with Anthropic API
  • cargo fmt --check passes (no Rust changes)

Add bashkit.pydantic_ai module with create_bash_tool() that wraps
BashTool as a PydanticAI Tool for use with Agent(tools=[...]).

- New bashkit/pydantic_ai.py integration module
- New examples/pydantic_ai_bash_agent.py (FizzBuzz demo)
- Add pydantic-ai optional dependency in pyproject.toml
- Update spec 013 with PydanticAI layout and extras

https://claude.ai/code/session_013JLmGF64ua4i9UvFMqyjfk
@chaliy chaliy merged commit 4345610 into main Feb 17, 2026
9 checks passed
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.

2 participants