Codeunit "AOAI Policy Params"
ID 7787
Namespace: System.AI
Represents the AOAI Policy management for combining Harms Severity and XPIA Detection settings.
Properties
| Name | Value |
|---|---|
| InherentEntitlements | X |
| InherentPermissions | X |
Methods
GetHarmsSeverity
Gets the current AOAI Policy Harms Severity setting.
procedure GetHarmsSeverity(): Enum "AOAI Policy Harms Severity"
Returns
| Type | Description |
|---|---|
| Enum System.AI."AOAI Policy Harms Severity" |
The current AOAI Policy Harms Severity. |
GetXPIADetection
Gets the current AOAI Policy XPIA Detection setting.
procedure GetXPIADetection(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
Gets the status of AOAI Policy XPIA Detection. |
SetHarmsSeverity
Sets the AOAI Policy Harms Severity.
procedure SetHarmsSeverity(HarmsSeverity: Enum "AOAI Policy Harms Severity")
Parameters
| Name | Type | Description |
|---|---|---|
| HarmsSeverity | Enum System.AI."AOAI Policy Harms Severity" |
The AOAI Policy Harms Severity to set. |
SetXPIADetection
Sets the AOAI Policy XPIA Detection.
procedure SetXPIADetection(IsEnabled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| IsEnabled | Boolean |
Enable/Disable AOAI Policy XPIA Detection |
Remarks
When XPIA detection is enabled, use
GetCustomAOAIPolicy
Gets the value for the custom AOAI policy, if set using SetCustomAOAIPolicy
procedure GetCustomAOAIPolicy(): Text
Returns
| Type | Description |
|---|---|
| Text |
SetCustomAOAIPolicy
Sets a Custom AOAI policy.
procedure SetCustomAOAIPolicy(CustomAOAIPolicyParams: Text)
Parameters
| Name | Type | Description |
|---|---|---|
| CustomAOAIPolicyParams | Text |
InitializeDefaults
Initializes the AOAI Policy parameters to their default values.
procedure InitializeDefaults()