AgentFnOptions class
Options handed to the handler of a custom agent.
Constructors
-
AgentFnOptions({required void sendChunk(AgentStreamChunk chunk), CancellationToken? cancel, Map<
String, dynamic> ? context})
Properties
- cancel → CancellationToken?
-
Cooperative cancellation token (the Dart stand-in for
AbortSignal).final -
context
→ Map<
String, dynamic> ? -
The ambient request context.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendChunk → void Function(AgentStreamChunk chunk)
-
Emits a stream chunk to the client.
final
Methods
-
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