O&O ConsultingBook a free call

Home / Insights / AI in Practice

AI Agents: When Models Take Actions

What makes a system an agent, the loop it runs, and the controls it needs.

O&O Consulting · · 2 min read

A robot representing software that acts

A chatbot returns text. An agent uses a model to decide what to do next, does it through software tools, looks at the outcome, and continues toward a goal.

Reasoning and acting

The ReAct method, published in 2022, interleaves written reasoning with actions such as searching, so that each observation informs the next step. Toolformer showed that a model can learn when calling a calculator or search tool would improve its text.

A typical agent has a model, a set of tools with clear descriptions, some memory of what has happened, and a rule for when to stop.

The working loop of an AI agentIllustrative diagram, not data
Read the goal and current statePlan the next stepCall a toolObserve the resultand the loop repeats
Read the goal and current statePlan the next stepCall a toolObserve the resultand the loop repeats

Diagram by O&O Consulting.

Why reliability is hard

If each step succeeds 95 per cent of the time and failures are independent, a twenty-step task succeeds only about 36 per cent of the time. Real errors are not independent, and agents can recover from some, but the arithmetic explains why impressive demonstrations may not survive routine use.

Designing for safety

  • Give each tool the minimum permission it needs.
  • Require human approval before actions that spend money, send messages or delete data.
  • Keep a log of every action and its inputs.
  • Set budgets for time, steps and cost.
  • Prefer reversible operations.

Untrusted content

An agent that reads web pages or email encounters text written by others. Instructions hidden there may try to redirect it. An agent holding both private data and a way to send it out is particularly exposed. Instructions in the system prompt reduce but do not eliminate this risk.

Limitations and open questions

Benchmarks for agents are still developing and may not resemble your environment. Often a fixed workflow, with a model used for one or two judgement steps, is cheaper, faster and easier to test than an agent that plans freely. Choose autonomy where variability genuinely requires it.

References

  • Yao, S. et al. (2022). "ReAct: Synergizing Reasoning and Acting in Language Models." arxiv.org/abs/2210.03629
  • Schick, T. et al. (2023). "Toolformer: Language Models Can Teach Themselves to Use Tools." arxiv.org/abs/2302.04761
  • Greshake, K. et al. (2023). "Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection." arxiv.org/abs/2302.12173

This article is general information, not financial, legal or investment advice. AI research and rules change quickly; check the cited sources for the current position.