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