Skip to main content
After verifying your first Managed Agent, extend its capabilities as the work requires. Its definition stores the model, stable instructions, and tools. Use Tools and MCP to declare connections and bind tools for external systems, or Workspaces and Skills to supply reusable instructions and task methods. After saving, create a new Session to verify that execution uses the configuration. This page introduces “Configure Agents and resources”, documenting definition fields, defaults, and updates and explaining how resources bind to Agents and Sessions. Sessions can inherit default resources or select them explicitly at creation, while service administrators maintain Dataplane deployment settings. The following sections begin with reading and updating the definition, then cover models and resource configuration.

Definition APIs

Use platform Bearer identity and an authorized Namespace. Creation nests behavior under definition; updates put the fields at the body root. Catalog agent.version and definition.version govern different resources.

Definition fields

Saving tools and mcpServers in this definition associates the configuration with the Agent. An application then creates a Session using the Agent’s ID, and Service assembles tools from the selected definition version. Task requests do not need to repeat the configuration. See saving tools to an Agent for complete declaration, creation, and update examples. MCP authentication comes from the Agent’s default Vaults or the Session’s vaultIds. Definition updates are not arbitrary partial merges. Read the current definition and retain unchanged writable fields before PATCH so other settings are not cleared. This example uses variables from the Creation guide and changes only system:
When a Workspace is bound, instructions and tools must also follow workspaceBinding overrides/instructions rules. Changing a display name does not migrate the stable Agent key.

Default and explicit models

The standard Dataplane includes DashScope support. Configure DASHSCOPE_API_KEY in the Dataplane process/container and use BUILDER_MODEL_NAME for the default model; the standard default is qwen-max. Restart the component after deployment variable changes. An empty model uses the default Model. Explicit dashscope:qwen-max resolves through the registry. Other providers require their extension and credentials in the distribution; changing the name does not install support. Model, platform-login, and Vault tool credentials serve separate purposes.

Model integrations

The Java SDK provides model extensions for OpenAI and compatible APIs, Anthropic, Gemini and Ollama. These are integration options; their existence in the SDK does not make every provider part of the standard Service image. The selected model must support the tool calls and input types your task uses.

How resources relate to Agents and Sessions

Workspaces, Environments, Memory Stores, and Vaults are reusable resources, but they enter execution differently. A published Workspace is resolved into an Agent definition, supplying instructions, skills, and tool configuration. Environments, Memory Stores, and Vaults are runtime resources selected by each Session. Creating a resource makes it manageable on the platform; the associations below make it available to a task. Agent defaults apply when creating new Sessions. Updating the definition does not replace the resources selected by existing Sessions. A Session saves resource IDs, which do not make the referenced resources immutable: Memory documents can change, Vault credentials can rotate, and Environment configuration can be maintained. Workspace publication content is pinned with the Agent definition version. Consider other consumers when modifying a shared resource itself.

Set default resources on an Agent

First create the required Environment, Memory Store, or Vault and retain the returned IDs. The following example sets all three defaults for an existing Managed Agent. Replace the placeholders and save the JSON as resource-defaults.json. To change only one resource category, include only that field. The command below preserves omitted fields; each supplied ID array is the complete default list, and an empty array clears that default binding.
Use AGENT_ID and the platform identity variables from the creation guide. The command reads the complete definition, retains its other writable fields, and merges the resource defaults before submitting its version. Changing resources therefore does not clear tools or instructions.
Inspect the returned resource IDs and new definition version before creating a Session. A 409 Conflict means the definition changed after you read it; reread and review before submitting again. Default bindings select available resources, while tool availability, confirmation policies, and external access permissions still apply separately. In the console, select these defaults under the Managed Agent’s Runtime configuration → Session defaults. Bind a published Workspace under Definition → Workspace. Check the resource selections when creating a new Session to see whether it uses the defaults or explicit choices.

Session resource selection

When creating a Session through POST /api/v1/agent-sessions, use target to select the Agent and optionally provide resources for this Session:
Save the returned Session ID, then submit a Turn to that Session. Resources must be accessible to the identity; an Environment key is not a user Bearer token. Input, file, action, budget, and recovery bodies are in the Session guide, with routes in API reference. Session creation freezes the Agent definition and runtime configuration. After a definition update, create a new Session; existing Sessions retain their selected version. Use the Session PATCH resource to adjust its Environment, Memory, or Vault settings, subject to resource permissions. See the API guide.

Change one layer at a time

Verify text with the default model, then adjust responsibilities and iteration limits. Add Workspace, Environment, Memory, and Vault incrementally. Check provider/deployment for model resolution failures and Environment or pending actions for tool waits; raising maxIters does not repair a connection failure.