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:
Default and explicit models
The standard Dataplane includes DashScope support. ConfigureDASHSCOPE_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 asresource-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.
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.
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 throughPOST /api/v1/agent-sessions, use target to select the Agent and optionally provide resources for this Session: