OpenUiChat class final

chat.OpenUiChat with every Open Intelligent UI builder and this package's default services.

Inheritance

Constructors

OpenUiChat({required ChatController controller, ToolLoopAgent? agent, Future<void> send(String text)?, OpenUiLibrary? library, OpenUiBuilderLookup? builders, List<OpenUiTool> tools = const [], ValueChanged<ActionEvent>? onAction, OpenUiServices fallbackServices = batteryServices, String? locale, List<BoundRecord> records(String id)?})

Properties

agent → ToolLoopAgent?
The agent that answers @ToAssistant turns when send is null.
finalinherited
builders → OpenUiBuilderLookup
finalinherited
controller → ChatController
finalinherited
fallbackServices → OpenUiServices
Services for answers' views wherever the app's scope leaves them unset.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
library → OpenUiLibrary
finalinherited
locale → String?
The locale of each answer's session.
finalinherited
onAction → ValueChanged<ActionEvent>?
Library actions the view does not handle itself.
finalinherited
records → List<BoundRecord> Function(String id)?
The records each answer's session binds, by message id.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
send → Future<void> Function(String text)?
Sends the text of a @ToAssistant turn over any transport.
finalinherited
tools → List<OpenUiTool>
Tools for Query and Mutation statements.
finalinherited

Methods

buildMessage(BuildContext context, ChatMessage message, bool isStreaming) → Widget
A chatMessageBuilder for AiChatScaffold and ChatMessageList.
inherited
dispose() → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sessionOf(String id) → OpenUiSession?
The session for the answer with id, if it has been built.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited