Class RedTeamRetrieveNextActionResponse.Builder
-
- All Implemented Interfaces:
public final class RedTeamRetrieveNextActionResponse.BuilderA builder for RedTeamRetrieveNextActionResponse.
-
-
Method Summary
-
-
Method Detail
-
isReady
final RedTeamRetrieveNextActionResponse.Builder isReady(Boolean isReady)
Whether an action is ready
-
isReady
final RedTeamRetrieveNextActionResponse.Builder isReady(JsonField<Boolean> isReady)
Sets Builder.isReady to an arbitrary JSON value.
You should usually call Builder.isReady with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
actionType
final RedTeamRetrieveNextActionResponse.Builder actionType(String actionType)
Type of action (e.g., "attack", "complete")
-
actionType
final RedTeamRetrieveNextActionResponse.Builder actionType(JsonField<String> actionType)
Sets Builder.actionType to an arbitrary JSON value.
You should usually call Builder.actionType with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
attackPrompt
final RedTeamRetrieveNextActionResponse.Builder attackPrompt(String attackPrompt)
Attack prompt to send to target
-
attackPrompt
final RedTeamRetrieveNextActionResponse.Builder attackPrompt(JsonField<String> attackPrompt)
Sets Builder.attackPrompt to an arbitrary JSON value.
You should usually call Builder.attackPrompt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
history
final RedTeamRetrieveNextActionResponse.Builder history(List<RedTeamRetrieveNextActionResponse.History> history)
Conversation history
-
history
final RedTeamRetrieveNextActionResponse.Builder history(JsonField<List<RedTeamRetrieveNextActionResponse.History>> history)
Sets Builder.history to an arbitrary JSON value.
You should usually call Builder.history with a well-typed
List<History>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addHistory
final RedTeamRetrieveNextActionResponse.Builder addHistory(RedTeamRetrieveNextActionResponse.History history)
Adds a single History to Builder.history.
-
isProcessing
final RedTeamRetrieveNextActionResponse.Builder isProcessing(Boolean isProcessing)
Whether processing is in progress
-
isProcessing
final RedTeamRetrieveNextActionResponse.Builder isProcessing(JsonField<Boolean> isProcessing)
Sets Builder.isProcessing to an arbitrary JSON value.
You should usually call Builder.isProcessing with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
message
final RedTeamRetrieveNextActionResponse.Builder message(String message)
Status message
-
message
final RedTeamRetrieveNextActionResponse.Builder message(JsonField<String> message)
Sets Builder.message to an arbitrary JSON value.
You should usually call Builder.message with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sessionId
final RedTeamRetrieveNextActionResponse.Builder sessionId(String sessionId)
Session identifier
-
sessionId
final RedTeamRetrieveNextActionResponse.Builder sessionId(JsonField<String> sessionId)
Sets Builder.sessionId to an arbitrary JSON value.
You should usually call Builder.sessionId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
targetSystemPrompt
final RedTeamRetrieveNextActionResponse.Builder targetSystemPrompt(String targetSystemPrompt)
Target's system prompt
-
targetSystemPrompt
final RedTeamRetrieveNextActionResponse.Builder targetSystemPrompt(JsonField<String> targetSystemPrompt)
Sets Builder.targetSystemPrompt to an arbitrary JSON value.
You should usually call Builder.targetSystemPrompt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
turn
final RedTeamRetrieveNextActionResponse.Builder turn(Integer turn)
Current turn number
-
turn
final RedTeamRetrieveNextActionResponse.Builder turn(JsonField<Integer> turn)
Sets Builder.turn to an arbitrary JSON value.
You should usually call Builder.turn with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RedTeamRetrieveNextActionResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RedTeamRetrieveNextActionResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RedTeamRetrieveNextActionResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RedTeamRetrieveNextActionResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RedTeamRetrieveNextActionResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RedTeamRetrieveNextActionResponse build()
Returns an immutable instance of RedTeamRetrieveNextActionResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.isReady()
-
-
-
-