Skip to content
LogoLogo

Agent Sandbox

Two places you will find it

WhereUse it forWho sees it
Playground, the right pane of the Agent BuilderTesting changes as you make them, before publishingPeople who can edit the agent
Agent Hub run view, at Agent Hub → open an agent → RunDay-to-day use of a published agentAnyone the agent is shared with

Full screen sandbox run

Sessions and runs

  • A session is one conversation. It keeps its history, so the agent remembers what was said earlier in the same session.
  • A run is one turn inside that session: your message, and the agent's answer.

In the run view, the left sidebar lists your sessions. You can:

  • New session. Start a clean conversation.
  • Rename. Give a session a meaningful title.
  • Delete. Remove it.
  • Search. Find an old session.

What you can do during a run

ActionWhat happens
Send a messageThe agent starts a run. The answer streams in word by word.
Queue a follow-upType while it is still working; your message is sent when the current run finishes.
StopCancels the run immediately.
Answer a questionThe agent can pause and ask you something. Pick an option or type a reply, and it continues.
CopyCopy any message.
Clear playground (builder only)Clears the Playground conversation.

Human-in-the-loop

When an agent needs your approval or a missing detail, the run pauses in an Awaiting input state and shows you a prompt. The run is durable. It survives a page refresh, and it stays paused until you answer.

Run states

StateMeaning
RunningThe agent is working.
Awaiting inputPaused, waiting for a human answer.
SucceededFinished, answer delivered.
FailedSomething went wrong. The reason is shown, and the full detail is in the trace.
CancelledYou stopped it.

What the agent brings to each run

When a run starts, Studio takes a snapshot of the agent's configuration and freezes it for that run:

  • the model and its settings
  • the knowledge bases attached
  • the tools available, and whose account they use
  • the guardrail and which side it checks
  • the memory connection

This is why a trace from last month still tells you exactly what the agent could do at the time, even if the agent has been edited since.

Output formats

What the sandbox shows depends on the agent's output format.

FormatShown asGood for
TextFormatted rich textChat, drafting, summaries
JSONA code block matching your schemaFeeding another system
ImageAn imageGenerated visuals
FileA downloadable fileReports, exports

When something looks wrong

SymptomCheck
"Model could not be resolved"The provider connection in Models, and that the chosen model is on the allowlist.
Agent ignores your documentsDocuments are Ready (not Processing/Failed), and the knowledge base is attached.
A tool never runsThe tool account is connected, the action is ticked, and the agent is bound to an account.
Message blockedA guardrail matched. The trace shows which stage and why.
Answer is inconsistentTighten the instructions; add a skill with the rules.

To see exactly what happened, open Audit traces.

Running an agent from your own app

The sandbox is a client over a public HTTP runtime. You can drive the same thing from your own product: start a turn, stream the events, answer input requests, cancel.

See Sandbox SDK.