public static final class CreatePolicyRequest.PromptAttackInfoList.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreatePolicyRequest.PromptAttackInfoList |
build() |
CreatePolicyRequest.PromptAttackInfoList.Builder |
categoryId(Long categoryId)
Harmful category ID
example:
1
|
CreatePolicyRequest.PromptAttackInfoList.Builder |
categoryLabel(String categoryLabel)
Category name
example:
Role Play
|
CreatePolicyRequest.PromptAttackInfoList.Builder |
isEnabled(Integer isEnabled)
Prompt attack configuration switch
0: Off
1: On
example:
1
|
CreatePolicyRequest.PromptAttackInfoList.Builder |
securityLevel(Integer securityLevel)
Security level
0: Low
1: Medium
2: High
example:
1
|
public CreatePolicyRequest.PromptAttackInfoList.Builder categoryId(Long categoryId)
Harmful category ID
example:1
public CreatePolicyRequest.PromptAttackInfoList.Builder categoryLabel(String categoryLabel)
Category name
example:Role Play
public CreatePolicyRequest.PromptAttackInfoList.Builder isEnabled(Integer isEnabled)
Prompt attack configuration switch 0: Off 1: On
example:1
public CreatePolicyRequest.PromptAttackInfoList.Builder securityLevel(Integer securityLevel)
Security level 0: Low 1: Medium 2: High
example:1
public CreatePolicyRequest.PromptAttackInfoList build()
Copyright © 2025. All rights reserved.