Skip to content

Quick Start

Terminal window
pip install astromesh-adk

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 None
Terminal window
astromesh-adk run my_agent.py:assistant "Hello, what can you do?"
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 None
Terminal window
astromesh-adk dev my_agent.py --reload

This starts a local server with REST API at http://localhost:8000.