Variables Specific to Supervisor Agent Teams

Here are the types of variables available in expressions that are specific to agent teams of type Supervisor:

  • System variables
  • Input variables
  • Self or agent scoped input variables

System Variables

These variables are runtime, read-only variables.

  • {{$context.$system.$currentDate}}: The current date at runtime.
  • {{$context.$system.$currentDateTime}}: The current date and time at runtime.
  • {{$context.$system.$inputMessage}}: The user’s latest message that triggered the agent run.
  • {{$context.$system.$chatHistory}}: The conversation history available at runtime.
  • {{$context.$system.$availableAgents}}: The list of agents available for the supervisor to route work to.

Input Variables

These variables are the inputs configured for the supervisor agent team. To pass values to the supervisor agent team as configured inputs, use the {{$context.$input.<name>}} syntax.

To configure an input variable, do these steps:

  1. When creating or editing a supervisor agent team, select the Input Variables tab.
  2. Select Add and enter the details:
    • Name: Enter a unique name for the variable. The name is the reference key. For example, name is used in the {{$context.$input.<name>}} format.
    • Choose the type, for example, string.
  3. Enter the value for the variable. You can enter a static value, or select Insert ExpressionInsert Expression icon to add a context expression.
  4. Add a description and save your changes.

Self or Agent Scoped Input Variables

Self variables ($agents.$self) provide the current agent’s own context, that's, its configured inputs and added topics. To reference these variables, use the appropriate format:

  • For agent input : {{$context.$agents.$self.$input.<name>}}
  • For specific topic: {{$context.$agents.$self.$topics.<name>}}