- Automatic Connection
- Manual Connection
Starting from version 2.11.0, connections are automatically assigned to custom agents during import when you declare them in your When you import an agent with connections defined in
agent.yaml configuration file.Declare connection requirements in the connections section of your agent.yaml file. The system uses a dictionary structure where:- Keys are either
"global_requirements"(for agent-wide requirements) or tool function names (for tool-specific requirements) - Values are connection requirement specifications
agent.yaml:-
Existing Configured Connections: If a connection with the specified
app_idalready exists and is configured, the system automatically assigns it to your agent. -
Non-existent Connections: If a connection with the specified
app_iddoesn’t exist, the system automatically creates it during import. However, you need to configure it later using theorchestrate connections configurecommand. For more information, see Manual Connection. - Duplication: If multiple tools require the same connection, it appears only once in error messages.
Connection Credential Format
watsonx Orchestrate uses your connection to set custom agent credentials. It injects your credential key at runtime. It follows the format:connection_app_idis the unique ID of your connection app.credential_typeis the value you set with the-kparameter when you configure the connection.
BASH

