Skip to content

API Reference parrot.semantic.loader

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

parrot.semantic.loader

View source

Own-format and Ossie loader into the typed semantic graph.

Alias Dimension

Re-exported from parrot.semantic.model.Dimension.

Class LoadedModel

Model with resolved graph, policy and deterministic version digests.

Fields:

Field Type Default Description
name str
model SemanticModel
related_models dict[str, SemanticModel]
policy ModelPolicy
members list[ModelMember]
schema PhysicalSchema
model_digest str
policy_digest str
compiler_version str

Alias Metric

Re-exported from parrot.semantic.model.Metric.

Alias ModelMember

Re-exported from parrot.semantic.models.ModelMember.

Alias ModelPolicy

Re-exported from parrot.semantic.policy.ModelPolicy.

Class PhysicalSchema

Qualified physical columns and types for AST qualification.

Fields:

Field Type Default Description
driver str
tables dict[str, dict[str, str]]

Method PhysicalSchema.sqlglot_schema

Return the dialect-aware nested schema accepted by sqlglot.

Table names are split only on qualification separators, preserving every catalog, schema, and table component supplied by the model author.

sqlglot_schema() -> dict[str, Any]

Returns: dict[str, Any]

Alias SemanticModel

Re-exported from parrot.semantic.model.SemanticModel.

Class SemanticModelLoader

Publish an immutable, completely validated model-directory snapshot.

Parameter Type Default Description
models_dir Path
driver str

Method SemanticModelLoader.load

Load model/policy pairs, rejecting unsupported format or bindings.

load() -> dict[str, LoadedModel]

Returns: dict[str, LoadedModel]

Method SemanticModelLoader.reload_if_changed

Atomically replace the snapshot only after full validation.

reload_if_changed() -> bool

Returns: bool

Alias SemanticPolicyError

Re-exported from parrot.semantic.errors.SemanticPolicyError.

Alias is_ossie_document

Re-exported from parrot.semantic.ossie.is_ossie_document.

Alias load_policy

Re-exported from parrot.semantic.policy.load_policy.

Alias validate_model_graph

Re-exported from parrot.semantic.model.validate_model_graph.

Alias validate_ossie_document

Re-exported from parrot.semantic.ossie.validate_ossie_document.

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