Package-level declarations
Types
Produces one assistant turn as a cold stream of ChatEvents.
Thrown by backends for transport / HTTP failures.
Owns one conversation and drives a ChatBackend, the Kotlin counterpart of the AI SDK useChat() hook.
Immutable snapshot rendered by the UI.
A request for information only the user can give — the neutral form of an AG-UI interrupt with a responseSchema and of MCP elicitation.
The user's answer to an InputRequest.
The human in the loop. Backends ask it to approve tool calls (AgentTool.requiresApproval, AI SDK tool approval, AG-UI interrupts) and for information only the user can give (AG-UI interrupts with a responseSchema, MCP elicitation). ChatController implements it by surfacing a Confirmation or an input form in the UI.
A user's answer to a tool approval request.
Functions
A backend whose construction needs I/O — e.g. listing MCP tools or fetching an A2A agent card — built fresh for every turn inside the turn's coroutine, so failures surface as the turn's error.
Close every still-streaming part (end of turn, stop, or error).