Skip to content

API Reference parrot.tools.config_schema

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

parrot.tools.config_schema

View source

Toolkit configuration JSON Schema (FEAT-593): one Draft 2020-12 envelope per toolkit.

Class ConfigOption

One dynamic choice returned by AbstractToolkit.config_options.

Fields:

Field Type Default Description
value str
label str

Attribute DRAFT_2020_12

Attribute SECRET_NAME_HINTS

Type: frozenset[str]

Class ToolkitSchemaEnvelope

GET /astudio/toolkits/{slug}/schema response.

Fields:

Field Type Default Description
slug str
class_name str
source Literal['model', 'introspection']
schema_ dict[str, Any]

Function build_schema_envelope

source='model' when cls.config_model is set, else 'introspection'.

build_schema_envelope(slug: str, cls: type, *, server_managed: frozenset[str] = frozenset()) -> ToolkitSchemaEnvelope

Parameter Type Default Description
slug str
cls type
server_managed frozenset[str] frozenset()

Returns: ToolkitSchemaEnvelope

Alias constructor_server_params

Re-exported from parrot.tools.server_params.constructor_server_params.

Function introspect_config_schema

Lift cls.__init__ into a Draft 2020-12 object schema (see module notes).

introspect_config_schema(cls: type, *, server_managed: frozenset[str] = frozenset()) -> dict[str, Any]

Parameter Type Default Description
server_managed frozenset[str] frozenset()

Returns: dict[str, Any]

Function is_secret_name

True when name is curated or contains any hint (case-insensitive substring).

is_secret_name(name: str, curated: frozenset[str] = frozenset()) -> bool

Parameter Type Default Description
name str
curated frozenset[str] frozenset()

Returns: bool

Attribute logger

Function model_config_schema

cls.config_model.model_json_schema() plus the x-* extensions.

model_config_schema(cls: type) -> dict[str, Any]

Returns: dict[str, Any]

Function secret_paths

Dotted paths of every value in params the schema marks x-secret.

secret_paths(schema: dict[str, Any], params: dict[str, Any]) -> list[str]

Parameter Type Default Description
schema dict[str, Any]
params dict[str, Any]

Returns: list[str]

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