Expand description
Agent Processor - Routes frontend messages to agent for processing.
This module provides the AgentProcessor which consumes messages from
the frontend (via WebSocket/POST) and processes them through the LLM,
emitting AG-UI events for the response.
§Architecture
Frontend → WebSocket/POST → message channel → AgentProcessor
↓
LLM (multi_turn with tools)
↓
EventBridge → SSE/WS → FrontendStructs§
- AgUi
Hook - AG-UI Hook for streaming tool call events and state updates to frontends.
- Agent
Processor - Processes frontend messages through the LLM agent.
- Agent
Step - A step in the agent’s execution for generative UI.
- Agent
UiState - Agent state for generative UI rendering.
- Processor
Config - Configuration for the agent processor.
- Thread
Session - Per-thread session state for conversation isolation.
- Tool
Result - Result of a tool call for rich UI rendering.
Enums§
- Processor
Error - Errors that can occur during message processing.
- Step
Status - Step status for generative UI progress display.