Lattice
Skip to content

Multi-step, tool use, long-running

A ai agent stack.

AI agent · 100,000 req/mo. At the default case — 100k requests a month, no further constraints — drawn from the 112 tools already in the index. Each pick is a tool whose own skip-when is stated, because a stack built on tools it does not know how to overcommit to is a guess. Describe your case to change it.

The picks

  • A high-throughput OpenAI-compatible proxy with a small footprint.

    Watch out: You need the breadth of a full routing stack.

    Consider Cloudflare AI Gateway instead when edge caching and latency dominate, on Cloudflare already

  • Tool use and state, in an ecosystem where the answers already exist.

    Watch out: You want a thin, legible core: this is a large surface.

    Consider Letta instead when agents whose memory is a first-class, inspectable and editable state

  • Durable workflows as ordinary Python functions and decorators.

    Watch out: You want a separate service to operate.

    Consider Fly Machines instead when hosting stateful containers that fits durable agent workers

  • Local generation with a UI tuned for interactive, long-form use.

    Watch out: You need headless serving at scale.

    Consider llama.cpp instead when the constraint is hardware, not throughput: no GPU, or an edge box

  • Generating and scoring attack prompts systematically.

    Watch out: You are not authorised to test the target.

    Consider garak instead when probing your own system for known vulnerability classes

  • Making evaluation, rather than tracing, the primary workflow.

    Watch out: You need open formats and self-hosting.

    Consider LangSmith instead when teams already deep in LangChain needing tracing and datasets

The costs and the risks

Estimated cost
$40–$238
per month
A heuristic band from query volume, not a vendor quote.
Confidence
87%
Lower when constraints narrow the field, higher when the workload has a well-worn default.

Cost driversBraintrust

Biggest risk at the default case: An agent loop that cannot survive a deploy will eventually cause real damage. Durability and tool permissions are the controls, not the prompt.

Rules of thumb

  • Route on measured quality, not on price alone. A cheaper model that fails your eval set is not cheaper.
  • An agent loop that cannot survive a deploy will eventually cause real damage. Durability and tool permissions are the controls, not the prompt.
  • If a step can fail halfway, it will. Write every step so running it twice is safe.
  • Benchmark at your concurrency, not at batch size one. A runtime that wins a single-stream demo can lose badly at fifty concurrent users.

Quick answers

What should you run for the AI agent stack?
Routing: Bifrost. Agents: LangChain. Workflows: DBOS. Inference: KoboldCpp. Guardrails: PyRIT. Evals: Braintrust. An agent loop that cannot survive a deploy will eventually cause real damage. Durability and tool permissions are the controls, not the prompt.
What should you use for routing in the AI agent stack?
Bifrost: a high-throughput OpenAI-compatible proxy with a small footprint. Watch out: you need the breadth of a full routing stack. Consider Cloudflare AI Gateway instead when edge caching and latency dominate, on Cloudflare already.
What should you use for agents in the AI agent stack?
LangChain: tool use and state, in an ecosystem where the answers already exist. Watch out: you want a thin, legible core: this is a large surface. Consider Letta instead when agents whose memory is a first-class, inspectable and editable state.
What should you use for workflows in the AI agent stack?
DBOS: durable workflows as ordinary Python functions and decorators. Watch out: you want a separate service to operate. Consider Fly Machines instead when hosting stateful containers that fits durable agent workers.
What should you use for inference in the AI agent stack?
KoboldCpp: local generation with a UI tuned for interactive, long-form use. Watch out: you need headless serving at scale. Consider llama.cpp instead when the constraint is hardware, not throughput: no GPU, or an edge box.
What should you use for guardrails in the AI agent stack?
PyRIT: generating and scoring attack prompts systematically. Watch out: you are not authorised to test the target. Consider garak instead when probing your own system for known vulnerability classes.
What should you use for evals in the AI agent stack?
Braintrust: making evaluation, rather than tracing, the primary workflow. Watch out: you need open formats and self-hosting. Consider LangSmith instead when teams already deep in LangChain needing tracing and datasets.
What does the AI agent stack cost per month?
$40–$238 a month at the default case: a heuristic band from query volume, not a vendor quote. Cost drivers: Braintrust.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.

A starting point, not a prescription. The recommendation at the default case is what the engine would tell a stranger with your workload; the recommendation at your case is what it tells you once it knows the constraints. The Stack Builder holds both — the builder link preselects this workload and starts with your volumes from here.