Skip to documentation
Open Workflow Studio
On this page

Agent

Workflow reference | Model | Multi-turn | ACA Sandbox

Kind: Agent
Configuration object: agent

An Agent is a run-owned Benchius conversation with a model from the existing playgrounds, explicit tools, bounded work, and lifecycle controls. Its model configuration and provider authentication use the same mechanisms as ordinary Model steps.

Inputs

The incoming workflow value supplies the agent's task. Named inputs, model input templates, conversation history, and feedback use the Multi-turn bindings. Connect JIT capability descriptors to make their functions available. Enable trusted MCP tools in the agent's Properties.

The Agent toolbox category groups Agent with Model, Multi-Turn, MCP integrations, JIT tools, and ACA Sandbox. An Agent owns a regular model child; open its contents to choose a playground and configure that child. Configure model-callable MCP tools in the Agent's Properties, and connect JIT capability steps when needed.

Configuration

Agent uses two configuration objects: agent for hosting and policy, and multiTurn for the existing conversation runtime.

agent property Default Usage
host Local Local, Browser, or AcaSandbox. Newly added agents select the current designer's local host.
instructions "" Up to 64 KiB of instructions prepended to the playground's instructions. Empty preserves the playground instructions.
maximumToolCalls 16 Total tool calls across this agent invocation, 1-64.
maximumToolRounds 8 Tool-handoff rounds per model turn, 1-8.

Use Configure agent model to open the existing playground picker. Configure a supported text model, apply its settings, and return to the parent agent. Chat Completions, Responses, Anthropic, Cohere, and compatible text conversation adapters share the existing runtime. JSON/media adapters and file-based Speech operations require separate workflow steps.

The multiTurn object contains modelStep, maximumTurns, feedbackTemplate, optional userInput and until, and mcps. New agents allow one turn by default; a turn can include several model/tool handoffs. See Multi-turn configuration for the complete conversation contract.

After a provider failure, connection corrections can resume a retained local conversation. Changing protected agent execution settings requires a new run so earlier conversation policy cannot silently override the edited settings.

Hosts

Host Execution
Local Current Benchius .NET process, including server-hosted designer previews and packaged applications.
Browser WebAssembly process in the PWA. Keep the tab connected; provider CORS policies apply.
ACA Sandbox Provider HTTP requests execute in a Python worker in the selected run-owned sandbox. Benchius supervises conversation state, tool handoffs, pauses, and cleanup.

Local and Browser fail explicitly when selected in the other hosting environment. For ACA Sandbox, set the node's sandboxNodeId to a sandbox in the same graph or a containing graph. The runner infers the dependency and waits for initialization without inserting sandbox metadata into the model prompt.

Configure the sandbox's Azure resource, identity, Python disk image, optional kickstart script, and billable-execution approval on that sandbox step. Provider credentials are sent to its worker for the current request. Use trusted disk images and scripts. Separate sandbox steps isolate agents with different trust requirements. Redirects, private-address connections, implicit HTTP retries, and environment-proxy credential forwarding are blocked by the worker.

Sandbox responses are buffered and limited to 128 KiB. Its complete request envelope, including Base64-encoded body and headers, is limited to 256 KiB. MCP orchestration and JIT lifecycle remain supervised by Benchius; connected code tools can select the same sandbox. Cancellation retires a sandbox with uncertain execution state. An interrupted remote request can have completed externally, so inspect effects before retrying.

Outputs

The agent returns its latest complete solution through normal workflow output connections. Preview retains complete turns, provider/tool activity, timings, estimated costs, and priced/unpriced model-request counts. Existing tool, resource, timeout, and budget limits remain enforced. Provider failures produce explicit failed states.

Agent map and viewer

Choose Agents in the canvas toolbar, or open a step's Agent viewer. The map projects actual handoffs through intervening steps and nested containers. Select a participant, search by name/host/status, zoom, reset the view, or reveal its workflow step. Toggle the associated viewer independently.

Search compacts matching participants into view and reports empty results. On narrow screens the open Agent map uses the design area, with the viewer stacked below it. Closing it restores the workflow canvas.

State includes the applied model and host, lifecycle status, start/finish times, tool limits, current output, and retained turn history. Telemetry exposes timestamped activities and cumulative cost accounting. Saved results keep this history after run-owned resources are cleaned up.

Pause allows an active request to finish and blocks subsequent model/tool calls at a safe execution boundary. Resume continues that same conversation. An agent's step timer suspends while it is actually paused; the enclosing workflow's deadline continues unless a workflow breakpoint or budget pause suspends it.

Delete cancels the agent's pending work in this run and skips dependent branches. Its workflow configuration and retained history remain available. Previously completed remote effects are unchanged. Shared-sandbox cancellation can make that instance unavailable to its other participants.

Resuming a different failed branch in the same run preserves an agent's deletion decision. A new preview creates fresh agent instances from the saved configuration.

Clone creates an independently editable workflow step with fresh agent/model IDs and copied applied configuration and breakpoints. Stop the active preview first, then connect the clone before the next run. Credentials continue to use protected named bindings, and run-local state is independent.

Example

{
  "id": "research-agent",
  "name": "Research agent",
  "kind": "Agent",
  "timeoutSeconds": 600,
  "breakpoint": { "enabled": false },
  "agent": {
    "host": "Local",
    "instructions": "Use the supplied evidence. State uncertainty and return the complete answer.",
    "maximumToolCalls": 16,
    "maximumToolRounds": 8
  },
  "multiTurn": {
    "maximumTurns": 1,
    "modelStep": {
      "id": "research-model",
      "name": "Research model",
      "kind": "Model",
      "model": {
        "playground": "openai",
        "model": "my-chat-model",
        "protocol": "Responses",
        "endpoint": "https://api.example.com/v1/responses",
        "credentialName": "AGENT_API_KEY",
        "authenticationHeader": "Authorization",
        "authenticationPrefix": "Bearer ",
        "requestBody": "{\"model\":\"my-chat-model\",\"input\":\"{{input}}\",\"stream\":true}"
      }
    },
    "mcps": []
  }
}

Replace the example endpoint/model with a configured playground connection and supply the named runtime credential. Exported JSON and packages exclude preview credentials.

An unhandled error has occurred. Reload 🗙