Technical guide

AI Engineering & Agents

Agents with guardrails, evals and a person approving what matters.

On this page
  1. Overview
  2. Trade-offs
  3. Architecture
  4. Workflow
  5. Challenges
  6. Example

All guides

← All guides

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

Illustrative examplets
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);