AIUIView

fun AIUIView(host: AIUIHost, document: AIUIDocument, messageId: String, modifier: Modifier = Modifier)

A reply's generated UI, from the first of host's renderers that reads its format. It comes in as it first shows while the agent writes it, and its parts as they show after it (see AIUIEntrance). It shows nothing when no renderer shows something of its own for the reply.

AIConversation shows it in place of a reply's text when it is given the host. Showing a reply yourself, call AIUIHost.receive with the conversation's messages first, then show it after the reply's steps when AIUIHost.canShow, and the reply's text otherwise.

Parameters

host

The conversation's host.

document

The reply's document.

messageId

The reply's id.

modifier

The modifier to apply.