loom-kernel documentation¶
Framework-agnostic toolkit to build backend applications with typed use cases, repository contracts, and transport adapters.
Official hosted documentation: loom-py.readthedocs.io. Companion demo application: dummy-loom.
Overview
Getting Started
REST
- Auto-CRUD
- Use-case DSL
- Anatomy of a use case
- Commands
- F — typed field reference
- Input markers
- Agent marker — reaching a named agent
- What the Agent() marker refuses
- Mcp marker — reaching an MCP server directly
- What the Mcp() marker refuses
- Compute — derive and normalise fields
- Rule — validate before execute
- Predicate composition
- Full use case example — update with all DSL features
- Declaring use cases on a REST interface
- Declaring routes in configuration (
app.rest.interfaces) - Cross-use-case calls with ApplicationInvoker
- Execution lifecycle
- DSL quick-reference
- Caller identity and authorization
- Role-based authorization
- Postgres row-level security
- Celery worker
- SQL API (ClickHouse)
- Persistence backends
- Cache
- Examples repo
- REST Testing
ETL
- ETL
- Install
- Minimal pipeline
- File source with JSON payload + final CSV report
- File aliases (FileLocator)
- YAML config (Polars path)
- Config values and secrets (
FromConfig) - Agents (
WithAgent) - Write modes
- Running only selected stages
- Spark runtime
- Testing ETL steps
- File aliases (FileLocator)
- Loading config from cloud storage
- Pluggable config resolvers
- End-to-end example
- API reference
- Agents in ETL steps (
WithAgent) - ETL Testing
- ETL Examples
AI Agents
- Agents Overview
- Agent Artifact Reference (
spec_version: 1)- Folder layout
- A complete artifact
- Top-level fields
output— the declared answer shapeon_output— a use case run once per completed runconversation— loading the prior turnscapabilities— the seven kindspolicies— execution limits- The agent’s version —
AgentPlan.fingerprint - Validating offline
- The published JSON Schema
- Model Providers
- The A2A Surface
- MCP Deployment
- Observability and Logfire