Overview
An agent is a workflow with a model inside it. We constrain its tools, log every step, and route consequential actions to a person.
Evals run against real-shaped sample cases before and after every prompt or model change.
Trade-offs
- Autonomy vs approval
- Agents draft; people approve, send, sign and pay.
- Model size vs latency
- Smaller models for routing and extraction, larger ones for reasoning.
Architecture
Integration layer
Moves data between systems reliably. Every message is queued, retried on failure and deduplicated so nothing posts twice.
- REST & webhook adapters
- Queue with retries
- Idempotency keys
- Schema mapping
Illustrative diagram. For the end-to-end view, see the architecture on the Developers home.
Workflow
Scope
Allowed tools and data.
What we design for
- Unbounded tool access
- No regression tests for prompts
- Hallucinated fields in extraction
Approval guardrail
const tools = { draftReply, lookupOrder }; // no send tool
const result = await agent.run(task, { tools, maxSteps: 6 });
await audit.log(result.steps);
if (result.proposedAction) await approvals.queue(result.proposedAction);