TheJobPoolConsultants Blogs Knowledge HubTheJobPoolConsultants Blogs Knowledge HubTheJobPoolConsultantsBlogs · Knowledge HubTheJobPoolConsultants · Blogs · Knowledge Hub

Agentic AI / architecture

The agent isn’t one model anymore.

Models propose. Tools execute. State remembers. The surrounding system makes the loop useful and accountable.

agent loop · tools · agent state · permissions · evaluation · The Agentic AI Series

What happens after the model responds?

A chatbot can stop after producing text. A task-performing system may need to inspect a result, choose a tool, act, and decide whether to continue.

Calling a model repeatedly is not enough. Someone must define available tools, validate arguments, retain state, enforce permissions, handle failure, and decide when the work is finished.

Start with the simplest useful control flow

A fixed workflow gives software explicit control over the sequence. An agent can let a model choose some next steps at runtime. Both can use language models and tools. More autonomy is not automatically better.

Anthropic’s engineering discussion distinguishes predefined workflows from systems where models dynamically direct tool use. The architecture below is an illustrative design, not a claim about the internals of any commercial assistant.

See the system

System / Agent loopFig. 02
User intentInput & constraints
Context & policyEvidence · permissions
The decision layerModel + orchestrationPropose → Validate → Execute → Observe
Tools
State
Evaluation
An illustrative agent boundary: policy governs actions; orchestration connects model proposals, tool execution, state, and evaluation.

The model is one component. The harness—the software around it—owns the execution contract.

A proposed tool call is data to validate. It is not permission to execute. A tool result is an observation to interpret. It is not a trusted instruction that can rewrite the system’s rules.

Trace one request

  1. The user asks whether a part is available.
  2. The application attaches the user’s authorized warehouse scope.
  3. The model proposes a lookup with a part identifier.
  4. The executor validates the tool name, argument shape, and access scope.
  5. The tool returns a structured observation with a timestamp.
  6. The system records the result and lets the model answer or request a permitted follow-up.

If the tool fails, the assistant should distinguish a failed lookup from an empty inventory. Those are different facts.

State is part of correctness

Keep a record of task status, observations, outstanding actions, and stopping conditions. Do not rely solely on a growing conversation string.

For actions with side effects, use stable operation identifiers and carefully defined retry behavior. A timeout does not necessarily mean an action never occurred. Repeating it blindly can duplicate the effect.

Put limits around the loop

Use a maximum number of steps, an execution budget, tool timeouts, and explicit failure states. Ask for human review when the task’s consequences require it. Stop when success is established, evidence is insufficient, or the allowed work is exhausted.

These controls should be enforced in application code. A prompt describing a budget is useful context, but it is not a hard execution limit.

Evaluate a trajectory, not only an answer

Inspect whether the system selected an appropriate tool, used authorized arguments, recovered from failures, and stopped correctly. A plausible final paragraph can hide a failed or unnecessary action.

Test invalid arguments, stale state, repeated tool calls, and untrusted text in observations. Record both success and the cost of getting there.

What comes next?

Before adding multiple agents, identify the concrete bottleneck: context size, specialization, independent subtasks, or evaluation quality. Splitting a task also creates communication and coordination costs.

Build exercise: draw the boundary between proposals and execution in an application you know. Label the exact component that can refuse an action.

Supporting sources

Sources support the technical background. TheJobPoolConsultants examples, diagrams and proposed designs are identified separately.

Part 1 of 1 published · The Agentic AI Series

Explore this series →

Keep the question going.

Architecture & System Design / architecture

Inside a production RAG pipeline.

A reference design that puts source versions, authorization, retrieval quality, and failure handling around generation.

advanced · Approx. 3 min read
Find your next step in a learning path →