Importing Agents
Importing an agent involves transferring it from your local system into your active environment, where it enters in a draft (undeployed) state. There are two supported methods for importing agents:- Using an agent configuration file: Upload a pre-defined configuration that describes the agent’s components and behavior.
- Using the ADK CLI: Create and register the agent directly via the Agent Development Kit (ADK) command-line interface.
Importing agents using an agent file
Use theorchestrate 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 or external agents connected from other systems.
To specify the agent file path, use the --file or -f flag:
BASH
Creating agents directly from the CLI
Theorchestrate 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.
- Native Agent
- External Agent
- watsonx.ai External Agent
Flags:
| Flag | Description |
|---|---|
--name / -n | The name of the agent you want to create. |
--kind / -k | The kind of agent you wish to create. For native agents, the value should be native. |
--description | The description of the agent. |
--llm | 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. |
--style | The style of agent you want to create. Either default, react, or planner. To learn more about agent styles, see Agent styles. |
--collaborators | 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). |
--app-id | The application connection name used by the native agent. |
--tools | A list of tools that the agent should be able to use. Multiple tools can be specified (e.g., --tools tool_1 --tools tool_2). |
--output | Allows you to specify an output file to write the agent definition to (either .yaml or .json are supported) for future modification post import. |
BASH
Deploying 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 Webchat 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 Webchat 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.
Deploying an agent
Deploying an agent is the act of taking an agent from a draft state into a live state.BASH
Undeploying an agent
Undeploying an agent is an act of revering an agent from it’s current live state to the previous live state.BASH

