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