AgentToolResult class final
The outcome of one domain-hub tool call (issue #2256).
Constructors
-
AgentToolResult({required bool ok, required List<
AgentFact> facts, String? feedback}) -
Creates a tool result.
const
- AgentToolResult.empty()
-
An empty, successful result.
const
- AgentToolResult.rejected(String message)
-
A rejected call carrying the model-readable feedback.
const
Properties
-
facts
→ List<
AgentFact> -
The facts the call resolved from the store.
final
- feedback → String?
-
The structured feedback for a rejected call, or
nullon success.final - hashCode → int
-
The hash code for this object.
no setterinherited
- ok → bool
-
Whether the call succeeded.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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