GuardrailCodeCallback constructor

const GuardrailCodeCallback({
  1. Input<GuardrailCodeCallbackAfterAgentCallback?>? afterAgentCallback,
  2. Input<GuardrailCodeCallbackAfterModelCallback?>? afterModelCallback,
  3. Input<GuardrailCodeCallbackBeforeAgentCallback?>? beforeAgentCallback,
  4. 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,
});