Package-level declarations

Types

Link copied to clipboard
class AgUiBackend(endpoint: String, apiKey: String = "", tools: List<AgentTool> = emptyList(), approver: ToolApprover = ToolApprover.AlwaysApprove, context: List<Pair<String, String>> = emptyList(), threadId: String? = null, client: OkHttpClient = DefaultHttpClient, maxRuns: Int = 8, eventLog: AgUiEventLog? = null, clock: () -> Long = System::currentTimeMillis) : ChatBackend

The AG-UI protocol (1.x): POST a RunAgentInput, receive the run's events over SSE. Served by Pydantic AI, LangGraph, CrewAI, Mastra, and the bundled server/main.py at /api/agui.

Link copied to clipboard
interface AgUiEventLog

A thread's AG-UI events, as AG-UI serialization specifies: an append-only log of the events exactly as they were streamed, per threadId, runs linked by RUN_STARTED.parentRunId, stored as a JSON array of events. AgUiBackend appends every run to it; replay plays runs back through the same event parser.