Class ExecutionStateRequest
java.lang.Object
com.oracle.database.selectai.model.agent.ExecutionStateRequest
Request used to update an agent team execution state.
The request contains the state and typed ExecutionStateParams
identifying the conversation to update. The builder also exposes a
convenience method for the common conversation-ID case. Every request
requires an explicit conversation identifier; the SDK does not rely on a
current database session conversation.
- Since:
- 1.1.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder(TeamExecutionState state) Creates a builder for an execution-state request.Returns the conversation identifier from the typed parameters.Returns the typed execution-state parameters.getState()Returns the run state to set.Serializes the parameters forSET_EXECUTION_STATE.
-
Method Details
-
getState
Returns the run state to set.- Returns:
- known execution state
-
getParams
Returns the typed execution-state parameters.- Returns:
- immutable execution-state parameters
-
getConversationId
Returns the conversation identifier from the typed parameters.- Returns:
- database-created conversation identifier
-
toParamsJson
Serializes the parameters forSET_EXECUTION_STATE.- Returns:
- JSON object containing the target conversation identifier
-
builder
Creates a builder for an execution-state request.- Parameters:
state- known state accepted by the database operation- Returns:
- mutable builder for an execution-state request
- Throws:
IllegalArgumentException- whenstateis null orTeamExecutionState.UNKNOWN
-