AgentReply class
Result of an agent invocation (ask).
Constructors
-
AgentReply({required String id, required String agentId, required String content, required String model, required DateTime timestamp, TokenUsage? tokenUsage, List<
AgentToolCall> ? toolCalls, String? finishReason}) -
const
Properties
- agentId → String
-
final
- content → String
-
final
- finishReason → String?
-
Provider-supplied stop reason — typically
'stop','length', or'tool_calls'.final - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Provider-side response identifier (may be empty for stub providers).
final
- model → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
final
- tokenUsage → TokenUsage?
-
final
-
toolCalls
→ List<
AgentToolCall> ? -
Structured tool invocation requests emitted by the model when the
caller passed
tools:toagents.ask/agents.stream. The list is empty (or null) when the model produced a plain content response.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