-
Notifications
You must be signed in to change notification settings - Fork 1
README
github-actions[bot] edited this page Apr 27, 2026
·
2 revisions
Get a Loom agent running in under 5 minutes.
pip install loom-agent
export ANTHROPIC_API_KEY=sk-ant-...import asyncio
from loom import Agent, Model, Runtime
async def main():
agent = Agent(
model=Model.anthropic("claude-sonnet-4"),
instructions="You are a concise assistant.",
runtime=Runtime.sdk(),
)
result = await agent.run("List the main capabilities of Loom")
print(result.output)
asyncio.run(main())-
Agentis the only top-level execution object. -
Modelselects the provider-backed model. -
Runtimeselects the execution profile and policy composition. -
Capabilitydeclares files, web, shell, MCP, and skill access. - Use
agent.run()for one-off executions. - Use
agent.session(SessionConfig(...))when the application needs continuity. - Use
RuntimeSignalandSignalAdapterfor gateway, cron, heartbeat, webhook, and application events.
- Start from
from loom import ...for the main application path. - Use
from loom.config import ...for advanced configuration internals. - Use
from loom.runtime import ...only when you need runtime states or mechanism contracts directly.
Use Model to select a provider-backed model:
Model.anthropic(...)Model.openai(...)Model.gemini(...)Model.qwen(...)Model.ollama(...)
Provider implementations live under loom/providers/, but application code should normally configure providers through Model.
Getting Started
Core Concepts
Runtime
Multi-Agent
Ecosystem
Self-Improvement
API Reference
Reference
Cookbook
- Overview
- Single-Turn Assistant
- Session Workflow
- Knowledge-Backed Answers
- Guardrailed Tool Agent
- Monitoring Agent
- Repo Copilot
- Internal Docs QA
- Ops Agent
- Approval Workflow