ToolResolution class
Outcome of evaluating a Toolchain policy for one ToolQuery.
Always carries the ordered tried candidates — on failure this is the material for errors and doctor output; on success it documents the decision path.
- Annotations
-
- @immutable
Constructors
-
ToolResolution({ResolvedTool? tool, List<
ToolSource> tried = const <ToolSource>[], String? problem}) -
Wraps the resolved tool (null on failure), the ordered candidates
tried, and the failure headline.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- ok → bool
-
truewhen the tool resolved.no setter - problem → String?
-
Why resolution failed (headline for errors/doctor); null on success.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tool → ResolvedTool?
-
The resolved tool, or null when resolution failed.
final
-
tried
→ List<
ToolSource> -
Every candidate tried, in policy order.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Debug string: the tool on success, the failure headline otherwise.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited