Skip to content

API Reference parrot.bots.flows.plan.delegate.node

github-actions[bot] edited this page Nov 5, 2026 · 4 revisions

parrot.bots.flows.plan.delegate.node

View source

DelegateToolNode — a runtime-decided tool call inside an ExecutionPlan (FEAT-590).

The delegate proposes; code disposes. Everything from dispatch onward is the inherited PlanToolNode path (retries, receipts, execute_tool, storage).

Class DelegateEscalation

on_reject='escalate' — always recorded, message prefixed escalate:.

Class DelegateRejectedError

The proposal failed the accept gate and on_reject did not recover it.

Class DelegateToolNode

Execute one :class:DelegatePlanNode.

Attributes:

Attribute Type Description
plan_node DelegatePlanNode
delegates Tuple[Any, ...]
trace_sink Optional[Any]
allow_delegate_side_effects bool

Method DelegateToolNode.model_post_init

Compile accept_when once, after the base compiles when.

model_post_init(__context: Any) -> None

Parameter Type Default Description
__context Any

Function make_delegate_node_factory

Build the node_factories["delegate"] callable (mirror of make_tool_node_factory).

make_delegate_node_factory(tool_manager: Any, working_memory: Any, delegates: Sequence[Any], *, trace_sink: Optional[Any] = None, allow_delegate_side_effects: bool = False, permission_context: Optional[Any] = None, plan_run_id: Optional[str] = None, step_mapping: Optional[Mapping[str, str]] = None) -> Callable[[Any, Set[str], Set[str]], DelegateToolNode]

Parameter Type Default Description
tool_manager Any
working_memory Any
delegates Sequence[Any]
trace_sink Optional[Any] None
allow_delegate_side_effects bool False
permission_context Optional[Any] None
plan_run_id Optional[str] None
step_mapping Optional[Mapping[str, str]] None

Returns: Callable[[Any, Set[str], Set[str]], DelegateToolNode]

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally