An abstract interface for a content generator.
A content generator is responsible for generating UI content and handling user interactions.
- Implementers
Properties
-
a2uiMessageStream
→ Stream<
A2uiMessage> -
A stream of A2UI messages produced by the generator.
no setter
-
errorStream
→ Stream<
ContentGeneratorError> -
A stream of errors from the agent.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isProcessing
→ ValueListenable<
bool> -
Whether the content generator is currently processing a request.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
textResponseStream
→ Stream<
String> -
A stream of text responses from the agent.
no setter
Methods
-
dispose(
) → void - Disposes of the resources used by this generator.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendRequest(
ChatMessage message, {Iterable< ChatMessage> ? history, A2UiClientCapabilities? clientCapabilities}) → Future<void> - Sends a message to the content source to generate a response, optionally including the previous conversation history.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited