Class RedTeamCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class RedTeamCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
name
final RedTeamCreateParams.Body.Builder name(String name)
Name for this evaluation
-
name
final RedTeamCreateParams.Body.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
targetModel
final RedTeamCreateParams.Body.Builder targetModel(String targetModel)
Target model identifier
-
targetModel
final RedTeamCreateParams.Body.Builder targetModel(JsonField<String> targetModel)
Sets Builder.targetModel to an arbitrary JSON value.
You should usually call Builder.targetModel with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
attackerMaxGenerationAttempts
final RedTeamCreateParams.Body.Builder attackerMaxGenerationAttempts(Integer attackerMaxGenerationAttempts)
Maximum generation attempts for attacker
-
attackerMaxGenerationAttempts
final RedTeamCreateParams.Body.Builder attackerMaxGenerationAttempts(JsonField<Integer> attackerMaxGenerationAttempts)
Sets Builder.attackerMaxGenerationAttempts to an arbitrary JSON value.
You should usually call Builder.attackerMaxGenerationAttempts with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
attackerModel
final RedTeamCreateParams.Body.Builder attackerModel(String attackerModel)
Model for attacker
-
attackerModel
final RedTeamCreateParams.Body.Builder attackerModel(JsonField<String> attackerModel)
Sets Builder.attackerModel to an arbitrary JSON value.
You should usually call Builder.attackerModel with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
evaluationReportModel
final RedTeamCreateParams.Body.Builder evaluationReportModel(String evaluationReportModel)
Model for evaluation report
-
evaluationReportModel
final RedTeamCreateParams.Body.Builder evaluationReportModel(JsonField<String> evaluationReportModel)
Sets Builder.evaluationReportModel to an arbitrary JSON value.
You should usually call Builder.evaluationReportModel with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
executionStrategyType
final RedTeamCreateParams.Body.Builder executionStrategyType(String executionStrategyType)
Execution strategy type
-
executionStrategyType
final RedTeamCreateParams.Body.Builder executionStrategyType(JsonField<String> executionStrategyType)
Sets Builder.executionStrategyType to an arbitrary JSON value.
You should usually call Builder.executionStrategyType with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
hlProjectId
final RedTeamCreateParams.Body.Builder hlProjectId(String hlProjectId)
HiddenLayer project ID
-
hlProjectId
final RedTeamCreateParams.Body.Builder hlProjectId(JsonField<String> hlProjectId)
Sets Builder.hlProjectId to an arbitrary JSON value.
You should usually call Builder.hlProjectId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxParallelTechniques
final RedTeamCreateParams.Body.Builder maxParallelTechniques(Integer maxParallelTechniques)
Maximum parallel techniques
-
maxParallelTechniques
final RedTeamCreateParams.Body.Builder maxParallelTechniques(JsonField<Integer> maxParallelTechniques)
Sets Builder.maxParallelTechniques to an arbitrary JSON value.
You should usually call Builder.maxParallelTechniques with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxTurns
final RedTeamCreateParams.Body.Builder maxTurns(Integer maxTurns)
Maximum conversation turns
-
maxTurns
final RedTeamCreateParams.Body.Builder maxTurns(JsonField<Integer> maxTurns)
Sets Builder.maxTurns to an arbitrary JSON value.
You should usually call Builder.maxTurns with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
nRandomTechniques
final RedTeamCreateParams.Body.Builder nRandomTechniques(Integer nRandomTechniques)
Number of random techniques to use
-
nRandomTechniques
final RedTeamCreateParams.Body.Builder nRandomTechniques(JsonField<Integer> nRandomTechniques)
Sets Builder.nRandomTechniques to an arbitrary JSON value.
You should usually call Builder.nRandomTechniques with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
objectiveIds
final RedTeamCreateParams.Body.Builder objectiveIds(List<String> objectiveIds)
Objective IDs to evaluate
-
objectiveIds
final RedTeamCreateParams.Body.Builder objectiveIds(JsonField<List<String>> objectiveIds)
Sets Builder.objectiveIds to an arbitrary JSON value.
You should usually call Builder.objectiveIds with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addObjectiveId
final RedTeamCreateParams.Body.Builder addObjectiveId(String objectiveId)
Adds a single String to objectiveIds.
-
objectiveJudgeModel
final RedTeamCreateParams.Body.Builder objectiveJudgeModel(String objectiveJudgeModel)
Model for objective judging
-
objectiveJudgeModel
final RedTeamCreateParams.Body.Builder objectiveJudgeModel(JsonField<String> objectiveJudgeModel)
Sets Builder.objectiveJudgeModel to an arbitrary JSON value.
You should usually call Builder.objectiveJudgeModel with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
promptSetId
final RedTeamCreateParams.Body.Builder promptSetId(String promptSetId)
Prompt set ID for static prompt evaluation
-
promptSetId
final RedTeamCreateParams.Body.Builder promptSetId(JsonField<String> promptSetId)
Sets Builder.promptSetId to an arbitrary JSON value.
You should usually call Builder.promptSetId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
refusalJudgeModel
final RedTeamCreateParams.Body.Builder refusalJudgeModel(String refusalJudgeModel)
Model for refusal judging
-
refusalJudgeModel
final RedTeamCreateParams.Body.Builder refusalJudgeModel(JsonField<String> refusalJudgeModel)
Sets Builder.refusalJudgeModel to an arbitrary JSON value.
You should usually call Builder.refusalJudgeModel with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sessionsPerTechnique
final RedTeamCreateParams.Body.Builder sessionsPerTechnique(Integer sessionsPerTechnique)
Number of sessions per technique
-
sessionsPerTechnique
final RedTeamCreateParams.Body.Builder sessionsPerTechnique(JsonField<Integer> sessionsPerTechnique)
Sets Builder.sessionsPerTechnique to an arbitrary JSON value.
You should usually call Builder.sessionsPerTechnique with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
targetSystemPrompt
final RedTeamCreateParams.Body.Builder targetSystemPrompt(String targetSystemPrompt)
System prompt for the target
-
targetSystemPrompt
final RedTeamCreateParams.Body.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.
-
additionalProperties
final RedTeamCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RedTeamCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RedTeamCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RedTeamCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RedTeamCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RedTeamCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.name() .targetModel()
-
-
-
-