Package-level declarations
Types
Link copied to clipboard
class A2uiHost(val renderer: A2uiRenderer, var translation: A2uiTranslation = A2uiTranslation.Default, var toolNames: Set<String> = setOf(AguiA2ui.RENDER_TOOL_NAME), var onWarning: (String) -> Unit = {})
The A2UI surfaces of one transcript, kept in an A2uiRenderer and drawn where the transcript's parts are.
Link copied to clipboard
What to draw for a payload that is not a surface: the lifecycle before the paint, a failure, or a payload the client could not read.
Properties
Functions
Link copied to clipboard
fun rememberA2uiHost(transcript: UiTranscript, renderer: A2uiRenderer, translation: A2uiTranslation = A2uiTranslation.Default, toolNames: Set<String> = setOf(AguiA2ui.RENDER_TOOL_NAME), onWarning: (String) -> Unit = {}): A2uiHost
An A2uiHost for renderer, kept up to date with transcript.
Link copied to clipboard
fun AguiComponents.withA2ui(host: A2uiHost, registry: ComponentRegistry, onMessage: (RendererToAgentMessage) -> Unit = {}, pending: A2uiPendingRenderer = BasicPending, placeholder: A2uiPlaceholder = NoPlaceholder, toolNames: Set<String> = setOf(AguiA2ui.RENDER_TOOL_NAME)): AguiComponents
This slot table with the activity and toolCall slots drawing A2UI through host.