Skip to main content Switch to mobile version constaia 0.1.0 Configuration-as-code toolkit for typed, validated AI agent configs.
pip install constaia==0.1.0 Copy PIP instructions
constaia is a configuration-as-code toolkit for building, validating, and deploying typed configuration objects for AI agents and LLM applications. It lets you declare agent prompts, model parameters, tool schemas, and runtime policies as versioned Config objects that are validated against a schema before they reach production. It is designed for teams shipping generative features who need reproducible agent behavior, change review, and rollback without hand-editing YAML.
Configs are serialisable to JSON, diffable across versions, and can be exported to the Constaia control plane for deployment tracking.
Declarative Config and Agent classes with field validation, defaults, and deprecation warnings.
Compose reusable Prompt, ToolSpec, and ModelProfile objects and reference them across multiple agents.
Validate every config against its JSON schema with constaia.validate() before deployment; failures raise ConfigError with a precise field path.
Diff two config versions with constaia.diff() and emit a human-readable changelog for review.
Export configs to JSON, YAML, or the Constaia platform; load them back with constaia.load().
Built-in profiles for OpenAI, Anthropic, and open-weight model families with sane parameter defaults.
Lock a config to a semantic version and pin model IDs for reproducible agent runs.
pip install "constaia~=0.2.0" Quick start
from constaia import Config, Agent, ModelProfile, ToolSpec profile = ModelProfile(provider="openai", model="gpt-4o-mini", temperature=0.2) lookup = ToolSpec( name="lookup_order", description="Fetch an order by ID.", parameters={"order_id": {"type": "string", "required": True}}, ) agent = Agent( name="support-triage", system_prompt="Triage incoming tickets and route by urgency.", model=profile, tools=[lookup], ) config = Config(agents=[agent], version="1.4.0") constaia.validate(config) print(constaia.diff(prev_config, config)) # human-readable changelog constaia.deploy(config) # push to the Constaia platform API
Config(*, agents: list[Agent], version: str) -> Config — root config object; serialise with .to_json() / .to_yaml().
Agent(name, system_prompt, model, tools=None) — a single agent definition with model profile and tools.
constaia.validate(config: Config) -> None — schema-validates a config; raises ConfigError on violations.
constaia.diff(a: Config, b: Config) -> str — returns a structured changelog between two config versions.
constaia.load(source: str | Path) -> Config — loads a config from a JSON/YAML file or platform URL.
CONSTAIA_API_TOKEN — token used by constaia.deploy() and constaia.load() to talk to the Constaia platform.
CONSTAIA_PROFILE — one of openai, anthropic, oss to scope the default model profiles.
Released: Dec 4, 2026
Release files for constaia 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 12.7 kB
Release files / constaia-0.1.0.tar.gz
Release files / constaia-0.1.0-py3-none-any.whl
Security for constaia 0.1.0
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 4, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 1274d9b











