a2ui_agent library
The A2UI agent SDK: capability negotiation, prompting and response parsing for agents that generate A2UI.
Implements protocol v0.9 and the Express inference format only.
Classes
- A2uiGenerator
- The long-lived entry point to the agent SDK.
- A2uiPart
- A2UI messages compiled from one payload block of an LLM response, ready to deliver to a renderer.
- A2uiRequestProcessor
- The per-request facade: the catalogs negotiated with one renderer, the prompt snippet describing them, and parsing of the LLM's response.
- CatalogConfig
-
A catalog the agent supports, registered with an
A2uiGenerator. - ExpressFormatFactory
-
The Express format: a compact DSL enclosed in
<a2ui>tags, compiled into A2UI messages after the response is complete. - InferenceFormat
- One inference format bound to the catalogs of one request: the prompt that teaches the LLM the format, and the parser that reads what the LLM wrote.
- InferenceFormatFactory
- Selects the notation the LLM writes A2UI payloads in.
- Parser
- Reads an LLM response written in one inference format.
- PromptGenerator
- Renders the system prompt snippet teaching an LLM one inference format.
- RawA2uiPart
- The content of one payload block of an LLM response, without its sentinel tags, before it is compiled.
- RawResponsePart
- A slice of an LLM response before its payloads are compiled: TextPart or RawA2uiPart.
- ResponsePart
- A slice of a parsed LLM response: TextPart or A2uiPart.
- TextPart
- Conversational text from an LLM response, for display to the user.