Skip to content

API Reference parrot.tools.optimizations.inspection

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

parrot.tools.optimizations.inspection

View source

Bounded read-only inspection with an instance-wide admission limit (FEAT-584).

:class:InspectionRunner executes a bounded batch (1-8) of independent, read-only operations — file reads/metadata, literal search, path listing and Git status/diff-names — without a shell and without any model call. Every item is bounded individually (10s, ~2KiB serialized) and the whole batch is bounded as a unit (20s, the caller's max_output_bytes); a peer failing, timing out or being cut off by the batch deadline never removes another item's identity from the response.

One runner is cached per :class:BoundedSourceToolkit instance (see reader.py); its admission semaphore is therefore shared by every batch dispatched through that toolkit instance, not reset per call.

Class InspectionRunner

Execute independent operations without a shell or model call.

Parameter Type Default Description
reader 'BoundedSourceToolkit'

Method InspectionRunner.run

Return ordered items, individual failures and bounded continuations.

run(args: InspectionBatchArgs) -> OperationResult

Parameter Type Default Description
args InspectionBatchArgs The validated batch request.

Returns: OperationResult — A bounded :class:OperationResult wrapping an class:~parrot.tools.optimizations.inspection_models.InspectionBatch.

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