Skip to main content

GenericAgent

The main agent class that orchestrates LLM, tools, and conversation:

Agent Result

The run() method returns an AgentResult:

Multi-Turn Conversations

Maintain context across turns:

Handling Elicitations

When agent returns UI components for user input:

Next Steps

Tools

Add tools to agents

Streaming

Real-time responses