Importing an agent involves transferring it from your local system into your active environment, where it enters a draft (undeployed) state.
There are two supported methods for importing agents:
Use the orchestrate agents import command to import agents into the watsonx Orchestrate platform from a YAML, JSON, or Python file. You can import either natively built agents, external agents connected from other systemsm, or even custom agents.
Native and External Agents
(Public Preview) Custom agents
To specify the agent file path, use the --file or -f flag:
BASH
Copy
orchestrate agents import -f <path to .yaml/.json/.py file>
The application connection name used by the agent.
Before running this command, make sure you have a valid agent configuration file. This file defines the parameters that describe the agent’s behavior and structure for watsonx Orchestrate. For details on how to author these configurations, see Authoring agents.
Important:
This feature is currently in public preview. Functionality and behavior may change in future updates.
This feature works only with watsonx Orchestrate Developer Edition.
To specify the agent file path, use the experimental flags:
BASH
Copy
orchestrate agents import --experimental-package-root <path to agent package root> --experimental-config-file <path to agent configuration file>
Path to a config.yaml file to include in the custom agent package.
Connections for custom agents do not carry over during import. To configure a connection for a custom agent, use the experimental-connect command. For details, see Using connections in Custom agents.
The orchestrate agents create command can be used to quickly create and import an agent into the watsonx Orchestrate platform without first having a file to import.
The large language model the agent will use, in the format of provider/developer/model_id, for example watsonx/ibm/granite-3-8b-instruct, or watsonx/meta-llama/llama-3-3-70b-instruct, where watsonx/ refers to the models supported by watsonx Orchestrate.
A list of agents that the agent should be able to call out to. Multiple collaborators can be specified (e.g., --collaborators agent_1--collaborators agent_2).
The kind of agent you wish to create. For custom agents, the value should be custom.
Connections for custom agents do not carry over during import. To configure a connection for a custom agent, use the experimental-connect command. For details, see Using connections in Custom agents.
Agents in watsonx Orchestrate operate in one of two states: draft or live.
A draft agent is actively being developed or modified by a builder. You can access draft agents from the Manage Agents page in the UI.
A live agent is available to end users through the Web chat UI on the Orchestrate landing page.
Note:
In the watsonx Orchestrate Developer Edition, only the draft environment is available. This edition is designed for single-user, non-production use. As a result, the Web chat UI displays agents in their draft state instead of the live state.
Attempting to run deploy commands in the Developer Edition will result in an error.