AgentRoute SDK

Build agents in Python.

The AgentRoute SDK turns plain Python functions into AI agents with tools, memory, and structured output — on any OpenAI-compatible model. Start with three lines.

weather.pypython
from agentroute import Agent

agent = Agent("weather-bot", model="claude-sonnet-4")

@agent.tool
def get_weather(city: str) -> str:
    """Get the current weather for a city."""
    return "Sunny, 22C"

print(agent.run("What's the weather in Zurich?"))

Ready to build?

Install the SDK and have a live agent answering in five lines of Python.