How to Use Select AI Supervisor Agent Teams
Create the agent to serve as the supervisor and designate it as a supervisor, create worker agents, add the supervisor to the team attributes, and run user prompts against the team.
- Grant the required privileges. The database user must have
EXECUTEprivilege onDBMS_CLOUD_AI_AGENT, access to required credentials, and the required network ACLs for external provider calls. See Prerequisites for Using Select AI Agent for more information. - Create the tools that worker agents use, such as PL/SQL functions for lookup, update, notification, or reporting tasks. See DBMS_CLOUD_AI_AGENT Package and Examples of Using Select AI Agent for more information.
- Create worker agents and tasks. Keep each worker role specific so the supervisor can select the right worker for each subtask. See CREATE_TASK Procedure and CREATE_AGENT Procedure.
- Create a supervisor agent with the
supervisorattribute set totrue. See CREATE_AGENT Attributes. - Create the team with
supervisor_agentset to the supervisor agent name andagentsset to the worker agent-task pairs. See CREATE_TEAM Procedure. - Set the team for the session and submit natural language prompts with the Select AI Agent framework. See SET_TEAM Function.
- Review history views to confirm worker routing, returned results, worker failures, and human-input wait states. If a worker task requests human input, the team pauses until the user responds. The entire supervisor-led team pauses during this time. Continue the same conversation to provide the requested input. After the user responds, the worker resumes, completes the task, and returns the result to the supervisor. The supervisor then decides the next action. See DBMS_CLOUD_AI_AGENT Views.
Do not include the selected supervisor from the array of worker agents. The supervisor controls the team, while the array lists only worker agent-task pairs available for delegation. A worker task can use its own configured tools; the team attribute does not list tool names.
Note: Supervisor-led teams process worker subtasks sequentially. The supervisor waits for each worker result before delegating another subtask. Parallel worker execution is not part of this release.