GuardrailCodeCallback class
Constructors
-
GuardrailCodeCallback({Input<
GuardrailCodeCallbackAfterAgentCallback?> ? afterAgentCallback, Input<GuardrailCodeCallbackAfterModelCallback?> ? afterModelCallback, Input<GuardrailCodeCallbackBeforeAgentCallback?> ? beforeAgentCallback, Input<GuardrailCodeCallbackBeforeModelCallback?> ? beforeModelCallback}) -
Creates a new GuardrailCodeCallback.
afterAgentCallbackA callback defines the custom logic to be executed at various stages ofafterModelCallbackA callback defines the custom logic to be executed at various stages ofbeforeAgentCallbackA callback defines the custom logic to be executed at various stages ofbeforeModelCallbackA callback defines the custom logic to be executed at various stages ofconst -
GuardrailCodeCallback.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
afterAgentCallback
→ Input<
GuardrailCodeCallbackAfterAgentCallback?> ? -
A callback defines the custom logic to be executed at various stages of
agent interaction.
Structure is documented below.
final
-
afterModelCallback
→ Input<
GuardrailCodeCallbackAfterModelCallback?> ? -
A callback defines the custom logic to be executed at various stages of
agent interaction.
Structure is documented below.
final
-
beforeAgentCallback
→ Input<
GuardrailCodeCallbackBeforeAgentCallback?> ? -
A callback defines the custom logic to be executed at various stages of
agent interaction.
Structure is documented below.
final
-
beforeModelCallback
→ Input<
GuardrailCodeCallbackBeforeModelCallback?> ? -
A callback defines the custom logic to be executed at various stages of
agent interaction.
Structure is documented below.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited