Class RedTeamRetrieveNextActionResponse
-
- All Implemented Interfaces:
public final class RedTeamRetrieveNextActionResponseResponse from next-action polling endpoint.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRedTeamRetrieveNextActionResponse.BuilderA builder for RedTeamRetrieveNextActionResponse.
public final classRedTeamRetrieveNextActionResponse.History
-
Method Summary
Modifier and Type Method Description final BooleanisReady()Whether an action is ready final Optional<String>actionType()Type of action (e.g. final Optional<String>attackPrompt()Attack prompt to send to target final Optional<List<RedTeamRetrieveNextActionResponse.History>>history()Conversation history final Optional<Boolean>isProcessing()Whether processing is in progress final Optional<String>message()Status message final Optional<String>sessionId()Session identifier final Optional<String>targetSystemPrompt()Target's system prompt final Optional<Integer>turn()Current turn number final JsonField<Boolean>_isReady()Returns the raw JSON value of isReady. final JsonField<String>_actionType()Returns the raw JSON value of actionType. final JsonField<String>_attackPrompt()Returns the raw JSON value of attackPrompt. final JsonField<List<RedTeamRetrieveNextActionResponse.History>>_history()Returns the raw JSON value of history. final JsonField<Boolean>_isProcessing()Returns the raw JSON value of isProcessing. final JsonField<String>_message()Returns the raw JSON value of message. final JsonField<String>_sessionId()Returns the raw JSON value of sessionId. final JsonField<String>_targetSystemPrompt()Returns the raw JSON value of targetSystemPrompt. final JsonField<Integer>_turn()Returns the raw JSON value of turn. final Map<String, JsonValue>_additionalProperties()final RedTeamRetrieveNextActionResponse.BuildertoBuilder()final RedTeamRetrieveNextActionResponsevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RedTeamRetrieveNextActionResponse.Builderbuilder()Returns a mutable builder for constructing an instance of RedTeamRetrieveNextActionResponse. -
-
Method Detail
-
actionType
final Optional<String> actionType()
Type of action (e.g., "attack", "complete")
-
attackPrompt
final Optional<String> attackPrompt()
Attack prompt to send to target
-
history
final Optional<List<RedTeamRetrieveNextActionResponse.History>> history()
Conversation history
-
isProcessing
final Optional<Boolean> isProcessing()
Whether processing is in progress
-
targetSystemPrompt
final Optional<String> targetSystemPrompt()
Target's system prompt
-
_isReady
final JsonField<Boolean> _isReady()
Returns the raw JSON value of isReady.
Unlike isReady, this method doesn't throw if the JSON field has an unexpected type.
-
_actionType
final JsonField<String> _actionType()
Returns the raw JSON value of actionType.
Unlike actionType, this method doesn't throw if the JSON field has an unexpected type.
-
_attackPrompt
final JsonField<String> _attackPrompt()
Returns the raw JSON value of attackPrompt.
Unlike attackPrompt, this method doesn't throw if the JSON field has an unexpected type.
-
_history
final JsonField<List<RedTeamRetrieveNextActionResponse.History>> _history()
Returns the raw JSON value of history.
Unlike history, this method doesn't throw if the JSON field has an unexpected type.
-
_isProcessing
final JsonField<Boolean> _isProcessing()
Returns the raw JSON value of isProcessing.
Unlike isProcessing, this method doesn't throw if the JSON field has an unexpected type.
-
_message
final JsonField<String> _message()
Returns the raw JSON value of message.
Unlike message, this method doesn't throw if the JSON field has an unexpected type.
-
_sessionId
final JsonField<String> _sessionId()
Returns the raw JSON value of sessionId.
Unlike sessionId, this method doesn't throw if the JSON field has an unexpected type.
-
_targetSystemPrompt
final JsonField<String> _targetSystemPrompt()
Returns the raw JSON value of targetSystemPrompt.
Unlike targetSystemPrompt, this method doesn't throw if the JSON field has an unexpected type.
-
_turn
final JsonField<Integer> _turn()
Returns the raw JSON value of turn.
Unlike turn, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RedTeamRetrieveNextActionResponse.Builder toBuilder()
-
validate
final RedTeamRetrieveNextActionResponse validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static RedTeamRetrieveNextActionResponse.Builder builder()
Returns a mutable builder for constructing an instance of RedTeamRetrieveNextActionResponse.
The following fields are required:
.isReady()
-
-
-
-