hashbrown

UiChatResult

Chat state and commands with rendered UI messages.

UiChatResult
@typeTools
Chat.AnyTool
@typeState
lastAssistantMessage
UiAssistantMessage<Tools> | undefined

The most recent assistant response, including its rendered UI.

messages
UiChatMessage<Tools>[]

The messages with rendered UI attached to assistant responses.

setComponents
Dispatch<SetStateAction<UiKitInput<ExposedComponent<any>>[]>>

Replace the available UI components.