LlmResponseContext class
Represents all of or part of an LLM's response to a query.
- Inheritance
-
- Object
- BaseLlmResponseContext
- LlmResponseContext
Constructors
-
LlmResponseContext({required List<
String> responseArray, required bool isDone}) -
LlmResponseContext.native(Pointer<
LlmResponseContext> ? _pointer) - Initializes a LlmResponseContext instance as a wrapper around native memory.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClosed → bool
-
Tracks whether this object has been properly released via
dispose
.no setterinherited - isDone → bool
-
Indicates when an LLM is done responding. Only useful when calling the
asynchronous methods.
no setteroverride
-
responseArray
→ List<
String> -
The core of the LLM's response from this query. If the asynchronous
API is used, this
response
value should be chained with subsequent values until the LLM emits one with isDone set to true.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Releases all resources for this object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited