TaskAgentRegistry class final

Resolves agent types for task calls: TaskAgentRegistry.resolve finds a type by name, TaskAgentRegistry.toolSurfaceFor computes a type's restricted child tool surface.

Constructors

TaskAgentRegistry([Iterable<TaskAgentDefinition> overrides = const []])
Creates a registry of the built-in types plus overrides. A host definition whose name collides with a built-in replaces it (omp's project-over-bundled precedence).

Properties

agents → List<TaskAgentDefinition>
All registered types, built-ins first, in registration order.
no setter
hashCode → int
The hash code for this object.
no setterinherited
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
resolve(String name) → TaskAgentDefinition?
Looks up a type by name (case-insensitive, Claude Code aliases folded via canonicalTaskAgentName); null when unknown.
toolSurfaceFor(TaskAgentDefinition agent, List<AgentTool> pool) → List<AgentTool>
Computes agent's child tool surface from the parent pool (omp's child-tool wiring, reduced): the task tool is ALWAYS stripped (no nested task calls), then TaskAgentDefinition.toolNames and TaskAgentDefinition.readOnly filters apply. Pool order is preserved.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited