Class TeamAttributes
java.lang.Object
com.oracle.database.selectai.model.agent.TeamAttributes
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forTeamAttributes.static final classTeam member definition used in agent-team attributes. -
Method Summary
Modifier and TypeMethodDescriptionstatic TeamAttributes.Builderbuilder()Creates a builder for team attributes.Returns the team agent and task mappings, ornullwhen unset.Returns the configured long-term memory length, ornullwhen the database default applies.Returns the team task execution process.Returns the supervisor agent name, ornullfor a regular team.toJson()Serializes attributes using the snake-case names expected byDBMS_CLOUD_AI_AGENT.
-
Method Details
-
getAgents
Returns the team agent and task mappings, ornullwhen unset.- Returns:
- team agent and task mappings, or
null
-
getProcess
Returns the team task execution process.- Returns:
- team task execution process, or
nullwhen unset
-
getLongTermMemoryLength
Returns the configured long-term memory length, ornullwhen the database default applies.- Returns:
- long-term memory length, or
nullwhen unset
-
getSupervisorAgent
Returns the supervisor agent name, ornullfor a regular team.- Returns:
- supervisor agent name, or
null
-
builder
Creates a builder for team attributes.- Returns:
- mutable builder for team attributes
-
toJson
Serializes attributes using the snake-case names expected byDBMS_CLOUD_AI_AGENT.- Returns:
- JSON object containing non-null attributes
- Throws:
IllegalStateException- when the attributes cannot be serialized
-