API Reference
lambdagent
Core
Term — Base class for all Lambda terms
Context — Evaluation environment (Γ)
TraceEntry — One β-reduction record
Primitives
Lam(name, prompt, model, temperature, max_tokens) — Lambda abstraction
Compose(*stages) — Function composition (also via >>)
If(cond, then_, else_) — Church conditional
Loop(body, condition, max_steps) — Y combinator
Pair(first, second) — Church pair
Fst() / Snd() — Projections
Tool(name, fn) — External oracle
Extensions
Par(*agents) — Parallel execution (also via |)
Route(classifier, routes, default) — CASE dispatch
Guard(agent, validator, retry, on_fail) — Dependent type
Memory(agent, store) — Environment extension
Compiler
from_config(path, **overrides) — YAML → Term
lint_config(path_or_dict) — Static analysis
to_lambda_expr(path_or_dict) — Export Lambda notation
describe_config(path_or_dict) — Human-readable description
Runtime
Runtime.execute(config_path, input, **overrides) — One-shot execution
Executor — β-reduction engine
ReActEngine — 7-phase ReAct loop
LLMAdapter — Multi-provider LLM (Anthropic/OpenAI/DashScope)
AgentPaaS
Endpoints (28 routes)
POST /api/v1/agents — Create agent
POST /api/v1/agents/{id}/run — Synchronous execution
POST /api/v1/agents/{id}/jobs — Async execution
POST /api/v1/admin/tenants — Create tenant
GET /api/v1/billing/usage — Usage report
GET /api/v1/metrics/overview — Platform metrics
- See
/docs for full OpenAPI spec