Skip to content

Python API

These pages are generated from the docstrings at build time, one page per public module. Start from the package that matches what you are doing:

Package What it holds
ontocast.toolbox ToolBox: builds and owns every tool a run needs (LLM, converter, chunker, triple store, vector store, caches)
ontocast.stategraph The LangGraph pipeline: graph construction, routing and the per-unit render/critic loop
ontocast.onto State and domain models: AgentState, per-unit states, ontologies, graph updates, budgets
ontocast.agent One function per pipeline step (render, criticise, consolidate, serialize, ...)
ontocast.tool The tools themselves: LLM, chunking, triple stores, vector stores, aggregation, validation
ontocast.config Settings, read from environment variables
ontocast.api The HTTP API (FastAPI) and request parsing
ontocast.integrations Adapters that expose OntoCast to other agent frameworks
ontocast.cli Console scripts
ontocast.registry, ontocast.runtime Scope-bound ToolBoxes over one shared runtime (tenancy)
ontocast.util Helpers