Agent Patterns

Agent Patterns

Agents are systems where the LLM controls the flow. The developer provides tools and constraints; the LLM decides what to do.

When to use agents instead of workflows:

  • The required steps are unknown at design time
  • The task needs to react to unexpected observations
  • You need open-ended tool use and dynamic decision-making
  • The workflow conditional logic has become too complex to hardcode