Define tools
Describe Python functions with the tool decorator and keep execution explicit.
A Python framework for model calls, typed tools, conversation memory and middleware, with an OpenAI-compatible client.
Illustrated workflow · not a live application session
Start with the implemented workflow, then follow the source to understand how it works.
Describe Python functions with the tool decorator and keep execution explicit.
Use an OpenAI-compatible endpoint and configure the provider yourself.
Agent, parsing, memory and middleware live in separate, readable modules.
Describe Python functions with the tool decorator and keep execution explicit.
Full setup and implementation ↗See pyproject.toml for supported Python versions. The example requires an API key or a configured local endpoint.
Clone the repository and run these commands from its root. Review the README before connecting external services.
Open repository ↗git clone https://github.com/honeyamn10-source/pyagent.git
cd pyagent
python -m pip install .
python examples/calculator_agent.pyModel quality and costs depend on the provider. Tools run with the permissions you give their Python process; this library is not an operating-system sandbox.
Check the latest results in GitHub Actions. A passing automated check covers its tested paths, not every real-world integration.