Interactive series

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 theater

01 / The stage

A show needs a place to run.

A green theater surrounds a partially illuminated workflow graph onstage, with an open prompt book beside it.
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 theater
Try the ideaIllustrative workflow

Can the show pick up where it stopped?

  1. Receive
  2. Draft
  3. Review
  4. Revise
  5. 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.

A casting desk with portraits faces a theater stage where a remote performer appears on a framed screen.
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 performers
Try the ideaModel selection

Change the performer.

Same workflow
Same runtime
Model 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.

A researcher passes ivory source folders through a service window to a theater assistant.
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 desk
Try the ideaOne possible decision

Would outside information help?

ModelResearch tool

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 visitor presents a lanyard badge to a seated attendant at an oak desk beside a partly open backstage door.
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 doorkeeper
Try the ideaAn authorized request

A recognized badge has limits.

Identity VerifiedPermission Research onlyProvider key Held by gateway

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.

A headset-wearing operator watches the stage through a booth window, beside an activity screen and physical control panel.
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 booth
Try the ideaIllustrative run

What needs your attention?

Draft CompleteReview Waiting

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

WorkflowModelAccessResearch toolModel response

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 ↗