Skip to main content

Listing agents

Use the orchestrate agents list command to list all agents in your environment. You can filter by agent type and get detailed information using the available flags.
BASH

Exporting agents

Use the orchestrate agents export command to export an agent configuration from your active environment. You can export the full agent configuration with all its dependencies (default), or only the agent configuration by including the --agent-only flag.
BASH
Note: Agentic workflow tools are only exported when you use a local environment with watsonx Orchestrate Developer Edition.

Updating agents

To update an agent, run the import command again using the same agent name as the agent you want to update.
BASH
If you’re updating an agent to use a different LLM (such as migrating from Llama to GPT-OSS-120B), see the Migration guide for model-specific optimization instructions.

Removing agent

To remove an existing agent, run the following command:
BASH

Chatting with an agent in interactive mode through the CLI

To start a chat session with an agent, run the following command:
BASH
To start a chat session and ask an initial question, run the following command:
BASH
To start a chat session and view the agent’s reasoning trace, run the following command:
BASH

Additional CLI chat options

You can interact with agents directly from the CLI by using the orchestrate chat ask command. To see all available flags and options, run:
BASH

Capturing execution logs for custom agents

For custom agents, you can capture and display execution logs by using the --capture-logs flag. It is useful for debugging and understanding agent behavior during execution.
BASH

Continuing an existing conversation by using a thread ID

To continue an existing conversation, use the --thread-id flag. It allows the agent to maintain conversational context across multiple requests.
BASH

Running flow agents from the CLI

The CLI now supports flow agents. From a user perspective, you can run flow agents the same way as other agents.
BASH

Uploading and downloading files during chat

Agents that require file input or output now support file upload and download capabilities through the CLI. When an agent requests a file upload or download, the CLI prompts you to provide the local directory path for the file to upload or the destination directory for downloaded files.
File prompts appear only when the agent workflow requires file interaction.