ToolAvailabilityResolution class final

The full resolution of every known tool id against a scope stack.

Constructors

ToolAvailabilityResolution({required Map<String, ResolvedToolAvailability> byId, Set<String> unknownIds = const {}, Map<String, bool> mcpServers = const {}, Set<String> discoverableIds = const {}})
Creates a resolution.
const

Properties

byId → Map<String, ResolvedToolAvailability>
Decision per known id — covers every id in knownToolIds, including ids the host does not wire (those are absent not wired by this host).
final
discoverableIds → Set<String>
Enabled ids hidden from the schema by the active load mode (issue #680): discoverable, mountable on demand through the gate. Static tool ids and mcp:<server> family ids alike — the card's discoverable set explicitly includes mcp__*. Empty in the default mode (no preset → byte-identical behavior). A discoverable id is NOT disabled: ResolvedToolAvailability.enabled stays true and only the gate's mount state decides visibility.
final
hashCode → int
The hash code for this object.
no setterinherited
mcpServers → Map<String, bool>
Per-server MCP availability (keyed without the mcp: prefix): the union of mcp:<server> keys across scopes, deepest wins. Servers absent from every scope default to true at the consumer; a merged mcp: false kill-switch forces every declared value to false.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unknownIds → Set<String>
Config ids outside knownToolIds (non-fatal; the caller warns).
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