Skip to content

API Reference parrot.experts.policy

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

parrot.experts.policy

View source

Expert policy: tier-to-model projection, tool access, and non-delegation (FEAT-778 M10).

Attribute DEFAULT_TIER_POLICY

Type: Final[dict[ExpertTier, dict[str, Any]]]

Alias ExpertManifest

Re-exported from parrot.experts.models.ExpertManifest.

Alias ExpertPolicyError

Re-exported from parrot.experts.models.ExpertPolicyError.

Alias ExpertTier

Re-exported from parrot.experts.models.ExpertTier.

Attribute MANDATORY_TOOLKITS

Type: Final[tuple[str, ...]]

Alias ModelConfig

Re-exported from parrot.models.basic.ModelConfig.

Attribute SPAWN_DENY_PRIORITY

Type: Final[int]

Alias SPAWN_TOOL_NAME

Re-exported from parrot.experts.models.SPAWN_TOOL_NAME.

Function effective_allowlist

Return permitted discovered tools while enforcing the non-delegation invariant.

effective_allowlist(manifest: ExpertManifest, discovered: Sequence[str]) -> list[str]

Parameter Type Default Description
manifest ExpertManifest
discovered Sequence[str]

Returns: list[str]

Function effective_toolkits

Return manifest toolkits plus missing mandatory toolkits, preserving first occurrence.

effective_toolkits(manifest: ExpertManifest) -> list[str]

Parameter Type Default Description
manifest ExpertManifest

Returns: list[str]

Function expert_policy_rules

Return the mandatory PBAC rule denying delegation for an expert.

expert_policy_rules(manifest: ExpertManifest) -> list[dict[str, Any]]

Parameter Type Default Description
manifest ExpertManifest

Returns: list[dict[str, Any]]

Function model_config_for

Return the model configuration for a tier with caller-provided overrides.

model_config_for(tier: ExpertTier, *, overrides: Mapping[str, Any] | None = None) -> ModelConfig

Parameter Type Default Description
tier ExpertTier
overrides Mapping[str, Any] | None None

Returns: ModelConfig

Function tier_policy

Return tier defaults with provider/model resolved from component LLM settings.

tier_policy(tier: ExpertTier) -> dict[str, Any]

Parameter Type Default Description
tier ExpertTier

Returns: dict[str, Any]

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