Class TeamAttributes.Builder
java.lang.Object
com.oracle.database.selectai.model.agent.TeamAttributes.Builder
- Enclosing class:
TeamAttributes
Builder for
TeamAttributes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagents(List<TeamAttributes.TeamMember> agents) Sets the team agent and task mappings.build()Builds team attributes without validating required database fields.longTermMemoryLength(Integer longTermMemoryLength) Sets the maximum number of prior task summaries retained as team memory.Sets the team task execution process, such assequential.supervisorAgent(String supervisorAgent) Assigns an existing supervisor agent to this team.
-
Constructor Details
-
Builder
public Builder()
-
-
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 assequential.- Parameters:
process- database-defined team process- Returns:
- this builder
-
longTermMemoryLength
Sets the maximum number of prior task summaries retained as team memory. Anullvalue 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
Assigns an existing supervisor agent to this team. Create that agent withsupervisor(true)first, and keep it out ofagents(List). Useprocess("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 byDBMS_CLOUD_AI_AGENTwhen the team is created.- Returns:
- immutable team attributes
-