Model
Read the context. Choose the next step.
Shahzad Ali · Learning notes
The model sits inside a system that can act.
My picture of how a request becomes a sequence of model calls, tool results and decisions.
An agent combines a model with software that runs tools and returns their results.
Context · completion criteria · permitted actions
Read the context. Choose the next step.
The application runs the permitted action.
New evidence goes back into the context.
Repeat until the task is complete, a limit is reached or a person needs to decide.
Instructions · memory · tool access · approvals · progress · limits
The request
A useful request gives the system an outcome, relevant context and a way to recognise completion. The application defines available tools and limits.
For an acquisition example, that could be a sourced research report with explicit assumptions, gaps and scenarios for human review.
How a prompt supplies contextThe transformer
Text becomes tokens and numerical representations. Transformer layers process those representations. The model can produce an answer or request an available tool.
A tool call is structured output that surrounding software handles. During ordinary inference, the trained parameters remain fixed.
Inside the transformerThe agent loop
The surrounding software passes instructions and context to the model, executes permitted tools, returns observations and records progress. The loop can continue, finish or pause.
The model proposes actions within the system it has been given. An application also needs stopping conditions, error handling and clear boundaries.
The agent loopState and retrieval
Conversation state, files and retrieved passages can carry useful information between steps. Each later call receives the context the application chooses to supply.
Stored material may be incomplete, outdated or wrong. Finding it again does not establish that it is true.
How retrieval worksParallel work
A coordinating agent can send independent questions to specialist agents and combine their findings. Shared dependencies and files need coordination.
Every agent uses context and computation. Extra reviewers can also repeat an error, so evidence checks and clear task boundaries matter.
Agents and their toolsReview and permissions
Tools can read information or change external systems. The application can require approval before a consequential action and preserve state while it waits.
A report, a draft email and a sent email represent different outcomes. The task should make the intended outcome clear.
Checking the outcomeSources behind the technical details
Reviewed . Technical details are linked to their sources. My perspective on how I use AI is personal.
Brown and colleagues. Describes the 175-billion-parameter model and learning from prompt examples with fixed model parameters.
OpenAI. Documents model calls, tool execution, handoffs, final outputs and limits in the Agents SDK.
Anthropic. Engineering patterns for workflows, autonomous loops and orchestrator-worker systems.
Anthropic. Describes parallel research, coordination, evaluation and resource costs in one deployed research system.
OpenAI. Shows how applications pause tool execution for approval and resume from saved state.
OpenAI. Explains reasoning effort and reasoning-token usage. Available settings depend on the model.
OpenAI. A dated account of the family, its Ultra orchestration and developer-reported evaluations. Pricing updates appear on the page.
OpenAI. Gives rough English conversions and explains why actual counts vary.