AIUIComponentContext

constructor(messageId: String, isStreaming: Boolean, host: AIUIHost, uriHandler: UriHandler, emit: (event: String, label: String, payload: Map<String, Any?>) -> Unit)

Parameters

messageId

The reply the component is in.

isStreaming

Whether the agent is still writing the reply's UI, so the arguments may still change.

host

The conversation's host, for running the app's tools and keeping state.

uriHandler

Opens the links openUrl lets through, such as the composition's LocalUriHandler.

emit

Sends an event to the agent the way the renderer's format does.