Quick Start
Install
Section titled “Install”pip install astromesh-adkCreate Your First Agent
Section titled “Create Your First Agent”Create a file called my_agent.py:
from astromesh_adk import agent
@agent(name="assistant", model="ollama/llama3")async def assistant(ctx): """You are a helpful assistant. Be concise.""" return NoneRun It
Section titled “Run It”astromesh-adk run my_agent.py:assistant "Hello, what can you do?"Add Tools
Section titled “Add Tools”from astromesh_adk import agent, tool
@tool(description="Add two numbers")async def add(a: int, b: int) -> int: return a + b
@agent(name="math-bot", model="ollama/llama3", tools=[add])async def math_bot(ctx): """You are a math assistant. Use the add tool.""" return NoneStart the Dev Server
Section titled “Start the Dev Server”astromesh-adk dev my_agent.py --reloadThis starts a local server with REST API at http://localhost:8000.