Build an Agent
Use the Agentor class to initialize an Agent providing the name, instructions, and tools. You can run the Agent with therun method or stream the response with the stream method.
Connect to a tool
Agents has access to tools to perform tasks and get information from the world. You can define your own tools or use the ones provided by Celesto AI ToolHub.Stream the response
You can stream the response from the Agent with thestream method.
type: The type of event.message: The message from the Agent.chunk: The chunk of the message.tool_action: The tool action from the Agent.reasoning: The reasoning from the Agent.raw_event: The raw event from the Agent.
Tracing and observability
Agentor supports tracing out of the box. Traces capture agent runs and tool calls so you can inspect them in Celesto.Troubleshooting tracing setup
No traces appear in the dashboard
No traces appear in the dashboard
- Confirm you set
CELESTO_API_KEYin the same environment where you run the agent. - If you set
CELESTO_DISABLE_AUTO_TRACING=true, enable tracing explicitly withenable_tracing=True.