GuardrailCodeCallback constructor
const
GuardrailCodeCallback({
- Input<
GuardrailCodeCallbackAfterAgentCallback?> ? afterAgentCallback, - Input<
GuardrailCodeCallbackAfterModelCallback?> ? afterModelCallback, - Input<
GuardrailCodeCallbackBeforeAgentCallback?> ? beforeAgentCallback, - Input<
GuardrailCodeCallbackBeforeModelCallback?> ? beforeModelCallback,
Creates a new GuardrailCodeCallback.
afterAgentCallback A callback defines the custom logic to be executed at various stages of
afterModelCallback A callback defines the custom logic to be executed at various stages of
beforeAgentCallback A callback defines the custom logic to be executed at various stages of
beforeModelCallback A callback defines the custom logic to be executed at various stages of
Implementation
const GuardrailCodeCallback({
this.afterAgentCallback,
this.afterModelCallback,
this.beforeAgentCallback,
this.beforeModelCallback,
});