Skip to content

API Reference parrot.tools.executors

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

parrot.tools.executors

View source

Remote tool executors for AI-Parrot.

Tools can be marked for off-process execution by passing an executor= kwarg when constructing an AbstractTool or AbstractToolkit. The executor takes the validated tool arguments and returns a ToolResult from somewhere else — an ephemeral Kubernetes pod, the Qworker service over HTTP, or a Redis Stream consumer — while the agent loop keeps its existing in-process contract.

Public API:

  • :class:AbstractToolExecutor — the interface every executor implements
  • :class:LocalToolExecutor — reference implementation that runs the tool in-process (mostly used for tests and as the default behaviour)
  • :class:K8sToolExecutor — runs the tool in an ephemeral batch/v1 Job against a Kubernetes cluster
  • :class:QworkerToolExecutor — dispatches the tool to the Qworker service via its HTTP client or via Redis Streams
  • :class:DockerToolExecutor — runs the tool in a Docker container (warm reuse with idle TTL, or ephemeral per call)
  • :class:ToolExecutionEnvelope — the serializable contract that travels over the wire to the remote runtime
  • :class:ExecutionPolicy / :class:ExecutorSpec — declarative agent-level routing of tools/toolkits to named executors

Alias AbstractToolExecutor

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

Alias LocalToolExecutor

Re-exported from parrot.tools.executors.local.LocalToolExecutor.

Alias ToolExecutionEnvelope

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

Alias build_envelope_from_tool

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

Alias project_permission_context

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

Alias project_trace_context

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

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