Class TeamAttributes

java.lang.Object
com.oracle.database.selectai.model.agent.TeamAttributes

public final class TeamAttributes extends Object
Attributes used to create a Select AI Agent team.

The JSON representation follows the CREATE_TEAM attributes accepted by DBMS_CLOUD_AI_AGENT. The database requires the agents attribute and uses a default long-term memory length of 30 when longTermMemoryLength is not specified. Required-field and other database-specific validation is delegated to Oracle Database; the SDK performs only the documented Java range validation.

For a supervisor-led team, supervisorAgent references an agent created with supervisor(true). The agents mappings contain workers only, not the selected supervisor. Use process("sequential") for one-at-a-time worker delegation.

Since:
1.1.0
See Also:
  • Method Details

    • getAgents

      Returns the team agent and task mappings, or null when unset.
      Returns:
      team agent and task mappings, or null
    • getProcess

      public String getProcess()
      Returns the team task execution process.
      Returns:
      team task execution process, or null when unset
    • getLongTermMemoryLength

      Returns the configured long-term memory length, or null when the database default applies.
      Returns:
      long-term memory length, or null when unset
    • getSupervisorAgent

      Returns the supervisor agent name, or null for a regular team.
      Returns:
      supervisor agent name, or null
    • builder

      Creates a builder for team attributes.
      Returns:
      mutable builder for team attributes
    • toJson

      public String toJson()
      Serializes attributes using the snake-case names expected by DBMS_CLOUD_AI_AGENT.
      Returns:
      JSON object containing non-null attributes
      Throws:
      IllegalStateException - when the attributes cannot be serialized