Skip to content

User Guides

Practical, task-oriented guides for building with apcore in Python, TypeScript, and Rust.

The guides are arranged as a learning path. Read the Foundations in order, then pick the Governance and Integration topics that match your project. Cookbooks are short end-to-end recipes for one scenario each; Troubleshooting is where to go when something does not behave as expected.

Foundations

  • Creating Modules — Class-based modules, module() registration, and YAML bindings for existing code
  • Schema Definition — Declaring input/output schemas, constraints, and LLM extension fields
  • Testing Modules — Unit, schema, and integration tests for modules

Governance

Integration

Cookbooks

End-to-end recipes for one scenario each. They link to the feature specifications rather than restating them.

Recipe What it covers
Approval Flow Gating a module behind a human decision with an ApprovalHandler
Cancellation Cooperative cancellation of long-running modules via the context's cancel token
Streaming Producing and consuming incremental output with stream()
Observability Tracing, structured logging, and redaction of sensitive fields

Troubleshooting

  • Troubleshooting — Frequently asked questions, an error-code → cause → fix table, and diagnostic commands

Learning Path

  1. Foundations: Start with Creating Modules and Schema Definition.
  2. Quality: Read Testing Modules before moving to production.
  3. Governance: Set up ACL Configuration and learn Writing Middleware.
  4. Integration: Pick the Integration topics that match your stack.
  5. Real-world: Use the Cookbooks for specific scenarios.

Before reading these guides, read the Core Concepts; for interface details, see the Feature Specifications.