A clean, standalone AI framework package for building AI agents with OpenAI's API.
Author: Patrik Mojzis
Website: https://fast-agents.patrikmojzis.com
Repository: https://github.com/patrikmojzis/fast-agents
- Simple and elegant agent framework
- Tool-based extensibility
- Built-in validation and transformation
- Async/await support
- Type-safe with Pydantic models
pip install -e .pip install fast-agentsfrom fast_agents import Agent, Tool, ToolResponse
# Create a custom tool
class MyTool(Tool):
name = "my_tool"
description = "A sample tool"
async def handle(self, **kwargs) -> ToolResponse:
return ToolResponse(output="Hello from my tool!")
# Create an agent
agent = Agent(
name="my_agent",
instructions="You are a helpful assistant.",
tools=[MyTool()]
)
# Use the agent in your applicationpydantic>=2.0.0- Data validation and settings managementopenai>=1.0.0- OpenAI API clienttiktoken>=0.4.0- Token counting for OpenAI models
MIT License