API Reference
Auto-generated from source code. Updated on every build.
Looking for tutorials?
The API reference is for looking up specific functions and classes.
If you're learning Trails, start with the Handbook
or the Guides.
Core
Trust & Policy
| Module |
Description |
| Policy |
@policy, check(), eval_policy() |
| Cost |
Cost, CostScope — budget tracking |
| Observability |
Event hooks, spans, metrics |
AI & Agents
| Module |
Description |
| LLM Client |
LLMClient — Anthropic, OpenAI, Ollama, Mock |
| Agent |
Session, planners (ReAct, Plan-and-Execute, Reflexion) |
Data Integration
| Module |
Description |
| Ingestion |
ingest_file(), extractors, chunkers |
| Vector |
Embedders, stores, retrieve() |
| Federation |
SPARQL endpoint, instance mesh |
| RML |
generate_mapping(), run_mapping() |
Testing
| Module |
Description |
| Testing |
isolated_kernel, mock_llm, fresh_context |