public static interface Guardrail.CodeCallbackOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getAfterAgentCallback()
public abstract Callback getAfterAgentCallback()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.
.google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Callback |
The afterAgentCallback. |
getAfterAgentCallbackOrBuilder()
public abstract CallbackOrBuilder getAfterAgentCallbackOrBuilder()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.
.google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CallbackOrBuilder |
|
getAfterModelCallback()
public abstract Callback getAfterModelCallback()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.
.google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Callback |
The afterModelCallback. |
getAfterModelCallbackOrBuilder()
public abstract CallbackOrBuilder getAfterModelCallbackOrBuilder()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.
.google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CallbackOrBuilder |
|
getBeforeAgentCallback()
public abstract Callback getBeforeAgentCallback()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.
.google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Callback |
The beforeAgentCallback. |
getBeforeAgentCallbackOrBuilder()
public abstract CallbackOrBuilder getBeforeAgentCallbackOrBuilder()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.
.google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CallbackOrBuilder |
|
getBeforeModelCallback()
public abstract Callback getBeforeModelCallback()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.
.google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Callback |
The beforeModelCallback. |
getBeforeModelCallbackOrBuilder()
public abstract CallbackOrBuilder getBeforeModelCallbackOrBuilder()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.
.google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CallbackOrBuilder |
|
hasAfterAgentCallback()
public abstract boolean hasAfterAgentCallback()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.
.google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the afterAgentCallback field is set. |
hasAfterModelCallback()
public abstract boolean hasAfterModelCallback()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.
.google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the afterModelCallback field is set. |
hasBeforeAgentCallback()
public abstract boolean hasBeforeAgentCallback()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.
.google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the beforeAgentCallback field is set. |
hasBeforeModelCallback()
public abstract boolean hasBeforeModelCallback()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.
.google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the beforeModelCallback field is set. |