The repeating cycle at the core of every agent: the model decides on an action, the runtime executes it, and the result is fed back to the model for the next decision.
Every loop needs explicit exit conditions: a final answer, a maximum step count, a timeout, or a budget limit. Without them, agents can spin indefinitely and burn tokens.
ReActalso: Reasoning and Acting
An agent pattern in which the model alternates between reasoning about what to do next and taking an action, following a Thought → Action → Observation loop.
ReAct is the default mental model for single-agent systems. It lets an agent correct course based on what tools return, at the cost of more calls and latency than a fixed pipeline.
How an agent breaks a goal into ordered sub-tasks before or while executing them.
Approaches range from plan-then-execute (draft the full plan up front) to interleaved planning (decide one step at a time). Explicit plans are easier to inspect, approve, and replan when a step fails.
Reflectionalso: Self-correction
A step in which an agent critiques its own output or trajectory and revises it before finishing.
Reflection works best when anchored to an external signal such as failing tests, validator errors, or a checklist. Pure self-critique without new information often just rephrases the same mistake.
An architecture in which several specialized agents, each with its own prompt and tools, collaborate on a task by passing messages or sharing state.
Splitting work across agents can improve focus and parallelism, but it adds coordination overhead and new failure modes. Start with one agent and split only when a single context or tool set clearly breaks down.
The component that routes work between steps or agents, deciding what runs next and when the task is complete.
An orchestrator can be plain code (a state machine or DAG) or an LLM acting as a supervisor. Code-based orchestration is cheaper and more predictable; LLM-based routing handles open-ended tasks.
A library that provides building blocks for agents, such as loops, tool registries, memory, state, and tracing, so teams do not have to rebuild them.
Popular options differ mainly in how much control they give you: graph-based frameworks expose explicit state and edges, while role-based frameworks favor quick multi-agent setups.
An agent triggered by system events (a new ticket, a webhook, a file upload) rather than by a user typing a message.
Event-driven agents run in the background, so idempotency, retries, queues, and dead-letter handling matter as much as the prompt.