Class AgentAttributes
java.lang.Object
com.oracle.database.selectai.model.agent.AgentAttributes
Attributes used to create or update a Select AI Agent.
The database requires profile_name and role when the
agent is created. The builder permits these values to be unset or blank;
DBMS_CLOUD_AI_AGENT validates the required creation values and the
supplied attribute names and values when an update is attempted.
The builder checks the documented shortTermMemoryLength range in
Java.
To create a supervisor-led team, designate its supervisor with
supervisor(true) at agent creation and
reference that agent with TeamAttributes.Builder.supervisorAgent(String).
The supervisor flag cannot be changed after creation. Worker agents remain
separate from the supervisor in the team's agent-task mappings.
- Since:
- 1.1.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AgentAttributes.Builderbuilder()Creates a builder for agent attributes.Returns whether the human tool is enabled.Returns the AI profile name.getRole()Returns the agent role.Returns the short-term memory length.Returns whether the agent is a supervisor.getTools()Returns configured tool names.toJson()Serializes attributes using the snake-case names expected byDBMS_CLOUD_AI_AGENT.
-
Method Details
-
getProfileName
Returns the AI profile name.- Returns:
- AI profile name, or
nullwhen unset
-
getRole
Returns the agent role.- Returns:
- agent role, or
nullwhen unset
-
getEnableHumanTool
Returns whether the human tool is enabled.- Returns:
- whether the human tool is enabled, or
nullwhen unset
-
getTools
Returns configured tool names.- Returns:
- immutable tool names, or
nullwhen unset
-
getShortTermMemoryLength
Returns the short-term memory length.- Returns:
- short-term memory length, or
nullwhen unset
-
getSupervisor
Returns whether the agent is a supervisor.- Returns:
- whether the agent is a supervisor, or
nullwhen unset
-
builder
Creates a builder for agent attributes.- Returns:
- mutable builder for agent 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
-