Show / Hide Table of Contents

Class GuardrailCodeCallback

Guardrail that blocks the conversation based on the code callbacks provided.

Inheritance
object
GuardrailCodeCallback
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CustomerEngagementSuite.v1beta.Data
Assembly: Google.Apis.CustomerEngagementSuite.v1beta.dll
Syntax
public class GuardrailCodeCallback : IDirectResponseSchema

Properties

AfterAgentCallback

Optional. The callback to execute after the agent is called. Each callback function is expected to return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further processing.

Declaration
[JsonProperty("afterAgentCallback")]
public virtual Callback AfterAgentCallback { get; set; }
Property Value
Type Description
Callback

AfterModelCallback

Optional. The callback to execute after the model is called. If there are multiple calls to the model, the callback will be executed multiple times. Each callback function is expected to return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further processing.

Declaration
[JsonProperty("afterModelCallback")]
public virtual Callback AfterModelCallback { get; set; }
Property Value
Type Description
Callback

BeforeAgentCallback

Optional. The callback to execute before the agent is called. Each callback function is expected to return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further processing.

Declaration
[JsonProperty("beforeAgentCallback")]
public virtual Callback BeforeAgentCallback { get; set; }
Property Value
Type Description
Callback

BeforeModelCallback

Optional. The callback to execute before the model is called. If there are multiple calls to the model, the callback will be executed multiple times. Each callback function is expected to return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further processing.

Declaration
[JsonProperty("beforeModelCallback")]
public virtual Callback BeforeModelCallback { get; set; }
Property Value
Type Description
Callback

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX