Skip to content

API Reference parrot.tools.compression.config

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

parrot.tools.compression.config

View source

Pydantic schema for the declarative compressor TOML manifest.

A manifest maps tool-name patterns (exact name, glob, or "*") to a :class:CompressorEntry describing which codec to run, at what :class:~parrot.tools.compression.levels.FilterLevel, whether to tee the original payload to working memory, and codec-specific parameters.

Class CompressorConfig

Parsed shape of a single compressors.toml manifest.

Fields:

Field Type Default Description
compressor dict[str, CompressorEntry] Mapping of tool-name pattern (exact name, glob, or "*") to its :class:CompressorEntry.

Class CompressorEntry

A single compressor configuration entry.

Fields:

Field Type Default Description
codec str Name of the codec to dispatch to. Must be a name registered via :func:~parrot.tools.compression.register_codec — validated at :meth:CompressorRegistry.load time, not at first tool call.
level FilterLevel FilterLevel.MINIMAL The configured :class:FilterLevel for this entry.
tee bool False Whether lossy/error payloads for this entry should be teed to working memory. Codecs that report lossy=True always require a tee regardless of this flag (G3); this flag is preserved for forward-compatible explicit opt-in.
params dict[str, Any] Codec-specific parameters (e.g. min_rows for the columnar codec).

Alias FilterLevel

Re-exported from parrot.tools.compression.levels.FilterLevel.

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