DelegateTaskTool class

Local MCP tool allowing an agent to delegate an isolated sub-task to another registered sub-agent or to an isolated clone of the current agent.

Inheritance

Constructors

DelegateTaskTool({required SubAgentRunner runner, List<String> availableAssignees = const ['clone']})

Properties

availableAssignees → List<String>
final
description → String
A description of what the tool does, used by the LLM.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
inputSchema → Map<String, dynamic>
The input parameters JSON schema mapping for the tool.
no setteroverride
name → String
The unique identifier name of the tool.
no setteroverride
riskLevel → ToolRiskLevel
The risk level associated with executing this tool. Defaults to ToolRiskLevel.read.
no setterinherited
runner → SubAgentRunner
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute(Map<String, dynamic> arguments) → Future<MCPToolResult>
Executes the tool actions using the supplied LLM arguments.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMCPTool() → MCPTool
Convert to standard MCPTool model representation.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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