Skip to content

API Reference parrot.tools.executors.local

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.tools.executors.local

View source

In-process reference executor.

Mostly exists so tests can exercise the executor-dispatch path without needing a Kubernetes cluster or a Qworker instance. The same code that runs in the parrot-tools worker image is reused here verbatim so behaviour stays consistent across runtimes.

Alias AbstractToolExecutor

Re-exported from parrot.tools.executors.abstract.AbstractToolExecutor.

Class LocalToolExecutor

Executor that runs the tool in the current Python process.

Used as the reference implementation: it imports the tool by path, instantiates it from envelope.tool_init_kwargs, and awaits its _execute(**envelope.arguments). Because it shares the runner module with the worker entrypoint, this is what the K8sToolExecutor worker pod ends up doing inside its own process — and what unit tests can exercise without ceremony.

Method LocalToolExecutor.execute

execute(envelope: ToolExecutionEnvelope) -> 'ToolResult'

Parameter Type Default Description
envelope ToolExecutionEnvelope

Returns: 'ToolResult'

Method LocalToolExecutor.close

close() -> None

Alias ToolExecutionEnvelope

Re-exported from parrot.tools.executors.abstract.ToolExecutionEnvelope.

Alias ToolResult

Re-exported from parrot.tools.abstract.ToolResult.

Alias run_envelope_inprocess

Re-exported from parrot.tools.executors.runner.run_envelope_inprocess.

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