Skip to content

API Reference parrot.experts.loader

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

parrot.experts.loader

View source

Discover and parse expert bundles (FEAT-778 M2).

Attribute BUNDLED_EXPERTS_DIR

Type: Final[Path]

Attribute EXPERTS_DIRNAME

Type: Final[str]

Alias ExpertBundle

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

Alias ExpertBundleError

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

Alias ExpertManifest

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

Alias IDENTITY_FILES

Re-exported from parrot.bots.prompts.identity.IDENTITY_FILES.

Attribute MANIFEST_FILENAME

Type: Final[str]

Function discover_expert_bundles

Discover valid expert bundles directly beneath one directory.

discover_expert_bundles(directory: Path, *, origin: Literal['bundled', 'workspace'] = 'workspace', logger: logging.Logger = _LOGGER) -> tuple[list[ExpertBundle], list[dict[str, Any]]]

Parameter Type Default Description
directory Path Root directory to scan non-recursively.
origin Literal['bundled', 'workspace'] 'workspace' Root from which the bundles are being discovered.
logger logging.Logger _LOGGER Logger used for malformed bundle warnings.

Returns: tuple[list[ExpertBundle], list[dict[str, Any]]] — A tuple of parsed bundles and reports for skipped malformed bundles.

Alias load_identity

Re-exported from parrot.bots.prompts.identity.load_identity.

Function parse_expert_bundle

Parse one expert bundle.

parse_expert_bundle(bundle_dir: Path, *, tenant: str | None = None, origin: Literal['bundled', 'workspace'] = 'workspace') -> ExpertBundle

Parameter Type Default Description
bundle_dir Path Directory containing the expert manifest and bundle files.
tenant str | None None Optional tenant that owns this bundle overlay.
origin Literal['bundled', 'workspace'] 'workspace' Root from which the bundle was discovered.

Returns: ExpertBundle — The validated expert bundle.

Raises:

  • ExpertBundleError — If the manifest, identity, or governance rules are invalid.

Alias parse_rules

Re-exported from parrot.experts.rules.parse_rules.

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