Class AgentAttributes.Builder
java.lang.Object
com.oracle.database.selectai.model.agent.AgentAttributes.Builder
- Enclosing class:
AgentAttributes
Builder for
AgentAttributes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds agent attributes without validating required database fields.enableHumanTool(Boolean enableHumanTool) Sets whether the agent can request human input.profileName(String profileName) Sets the AI profile name.Sets the agent role.shortTermMemoryLength(Integer shortTermMemoryLength) Sets the short-term memory length.supervisor(Boolean supervisor) Sets whether the agent is a supervisor at creation time.Sets the names of tools available to the agent.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
profileName
Sets the AI profile name.- Parameters:
profileName- AI profile name- Returns:
- this builder
-
role
Sets the agent role.- Parameters:
role- role assigned to the agent- Returns:
- this builder
-
enableHumanTool
Sets whether the agent can request human input.- Parameters:
enableHumanTool- whether human-tool requests are enabled- Returns:
- this builder
-
tools
Sets the names of tools available to the agent.- Parameters:
tools- tool names; the list is copied by the builder- Returns:
- this builder
-
shortTermMemoryLength
Sets the short-term memory length.- Parameters:
shortTermMemoryLength- non-negative memory length, ornullto use the database default- Returns:
- this builder
- Throws:
IllegalArgumentException- when the value is negative
-
supervisor
Sets whether the agent is a supervisor at creation time. The database does not allow changing this flag after creation. Assign the created supervisor to a team usingTeamAttributes.Builder.supervisorAgent(String); do not include it in that team's worker agent-task mappings.For a runnable example, see SupervisorTeamSample source.
- Parameters:
supervisor- whether the agent supervises other agents- Returns:
- this builder
-
build
Builds agent attributes without validating required database fields. Required-field and semantic validation is performed byDBMS_CLOUD_AI_AGENTwhen the agent is created.- Returns:
- immutable agent attributes
-