An interactive theater tour
AI agents,
backstage.
How do the pieces of an AI agent system fit together? Step into five scenes, try an example, and follow the connections.
Enter the theater01 / The stage
A show needs a place to run.
A screenplay describes the scenes and what happens next.
The workflow describes how the work proceeds. The runtime provides the environment where the program executes. Saved checkpoints can let a workflow recover after an interruption.
Read: The screenplay vs. the theaterCan the show pick up where it stopped?
- Receive
- Draft
- Review
- Revise
- Return
Persistent checkpoint: step 3 of 5
Three steps are complete and saved. Continue, save again, or interrupt the example.
Recovery requires checkpoints stored beyond the running process. Work after the last checkpoint may need to run again.
02 / Casting
The performer contributes through a connection.
I think of calling a model API as “hiring the performer” for a scene.
The workflow sends instructions to a hosted model and receives a response. A model gateway can offer several models through one interface; calling a provider directly is another option.
Read: Casting the performersChange the performer.
Same runtimeModel A
The workflow calls Model A through an API. The hosted model runs at its provider.
Changing a model can change its behavior. Check prompts and tool use before treating it as a replacement.
03 / Research desk
Sometimes the next move is to ask.
The model issues a tool call. The application executes the request and returns the results.
A tool definition tells the model what is available and how to request it. Within the application’s boundaries, the model can decide whether more information would help. A workflow can also require a tool call at a set point.
Read: Calling the research deskWould outside information help?
Choose a task to see an illustrative decision about using a research tool.
The model requests a tool call; the application executes it. Available tools, permissions and budgets still set the boundaries.
04 / The doorkeeper
Permission to enter. No key handed over.
A backstage attendant can check a badge and unlock an authorized door while keeping hold of the key.
Identity establishes who is asking. Permission determines what they may do. In this arrangement, a separate gateway attaches the provider key to an approved request and returns the result. Keeping keys out of logs still requires omission or redaction.
Read: The badge and the doorkeeperA recognized badge has limits.
Choose a request. The identity stays the same; permission depends on the action.
For an approved request, the gateway uses the key on the agent’s behalf and returns the result. Credential values must still be omitted or redacted from logs.
05 / Observation booth
Watch the work while it happens.
You wouldn’t understand how a show was going just by asking the performers afterward.
A trace connects the steps in a run, logs record events, and measurements reveal patterns such as delays or repeated failures. Those signals inform a decision. Intervention depends on controls the system separately provides.
Read: The observation boothWhat needs your attention?
The trace shows where the work is waiting. Inspect the research call for more context.
The stop button represents a separately provided workflow control. Observability itself does not stop the run or reveal everything that happened.
The pieces together
Follow one request through the theater.
Imagine asking an agent to summarize a recent public announcement. This is one possible route through the system.
Illustrative request
Observability spans the run.
The workflow receives the task and calls a hosted model.
These are roles, not five mandatory steps. Research may be unnecessary, checks can recur, and workflows may loop. The booth helps us understand the work across those calls.
Back to interactive series ↗