Class TeamAttributes.Builder

java.lang.Object
com.oracle.database.selectai.model.agent.TeamAttributes.Builder
Enclosing class:
TeamAttributes

public static final class TeamAttributes.Builder extends Object
Builder for TeamAttributes.
  • Constructor Details

  • Method Details

    • agents

      Sets the team agent and task mappings.
      Parameters:
      agents - team members; the list is copied by the builder
      Returns:
      this builder
    • process

      Sets the team task execution process, such as sequential.
      Parameters:
      process - database-defined team process
      Returns:
      this builder
    • longTermMemoryLength

      public TeamAttributes.Builder longTermMemoryLength(Integer longTermMemoryLength)
      Sets the maximum number of prior task summaries retained as team memory. A null value uses the database default of 30.
      Parameters:
      longTermMemoryLength - memory length; must not be negative
      Returns:
      this builder
      Throws:
      IllegalArgumentException - when the value is negative
    • supervisorAgent

      public TeamAttributes.Builder supervisorAgent(String supervisorAgent)
      Assigns an existing supervisor agent to this team. Create that agent with supervisor(true) first, and keep it out of agents(List). Use process("sequential") for worker delegation.

      For a runnable example, see SupervisorTeamSample source.

      Parameters:
      supervisorAgent - supervisor agent name
      Returns:
      this builder
    • build

      Builds team attributes without validating required database fields. Required-field and semantic validation is performed by DBMS_CLOUD_AI_AGENT when the team is created.
      Returns:
      immutable team attributes