Agents and workflows

Use this page when the main problem is routing, controller loops, tool execution, memory boundaries, or orchestration.

Use this page when the issue is how an agent system is put together: who decides the next step, which tools it can call, how memory moves across steps, and how to review the design and code.

Prerequisites

Before you start

  • Know whether you are reviewing a single-step assistant flow or a true agent loop.
  • Identify the controller, the model, the tools, and the trust boundaries before reviewing implementation details.
  • Know whether the next question is about system design, code, or evaluation.
Scope

When to use agents and workflows

  • Use this page when the main problem is agent structure, controller flow, tool use, memory across steps, or orchestration.
  • Use it when behavior depends on how context, tools, and state move from one step to the next.
  • Use it when you need to separate controller logic, model behavior, tool behavior, and state ownership.
  • Use it when the task is about a multi-step AI system, not just a single prompt inside one chat turn.

Use another topic when the main problem is elsewhere:

  • Prompt engineering — The main problem is how to write the prompt, not how a multi-step system is built.
  • AI assistants — The main problem is how a chat assistant product behaves.
  • API integrations and tools — The main problem is connecting the model to tools, APIs, or other external systems.

Continue with the right resource

Choose the resource that matches the next action, not just the content type.