Class RunTeamRequest.Builder
java.lang.Object
com.oracle.database.selectai.model.agent.RunTeamRequest.Builder
- Enclosing class:
RunTeamRequest
Builder for
RunTeamRequest.-
Method Summary
Modifier and TypeMethodDescriptionattributeVariables(Map<String, ?> attributeVariables) Sets attribute variables as a snapshot of a JSON-compatible map.build()Builds an immutable request; a prompt and runtime parameters are optional.conversationId(String conversationId) Sets an application-managed conversation identifier for cross-session runs.instructionVariables(Map<String, ?> instructionVariables) Sets instruction variables as a snapshot of a JSON-compatible map.params(RunTeamParams params) Sets typed runtime parameters for the team run.stateVariables(Map<String, ?> stateVariables) Sets state variables as a snapshot of a JSON-compatible map.userPrompt(String userPrompt) Sets the optional team prompt or human response.
-
Method Details
-
userPrompt
Sets the optional team prompt or human response.- Parameters:
userPrompt- user query or response to a human-input request- Returns:
- this builder
-
params
Sets typed runtime parameters for the team run.- Parameters:
params- immutable runtime parameters- Returns:
- this builder
-
conversationId
Sets an application-managed conversation identifier for cross-session runs.- Parameters:
conversationId- database-created conversation identifier- Returns:
- this builder
-
instructionVariables
Sets instruction variables as a snapshot of a JSON-compatible map.- Parameters:
instructionVariables- values substituted into task instructions- Returns:
- this builder
-
attributeVariables
Sets attribute variables as a snapshot of a JSON-compatible map.- Parameters:
attributeVariables- values that override configurable attributes- Returns:
- this builder
-
stateVariables
Sets state variables as a snapshot of a JSON-compatible map.- Parameters:
stateVariables- values shared between tools during a run- Returns:
- this builder
-
build
Builds an immutable request; a prompt and runtime parameters are optional. Building does not modify this builder; it may be reused to create further requests without changing previously built ones.For a runnable example, see RunTeamParamsSample source.
- Returns:
- immutable team-run request
- Throws:
IllegalArgumentException- when typed and convenience runtime parameters are mixed
-