콘텐츠로 이동

ToolGuardrailBehavior

이 콘텐츠는 아직 번역되지 않았습니다.

type ToolGuardrailBehavior =
| {
type: "allow";
}
| {
message: string;
type: "rejectContent";
}
| {
type: "throwException";
};

The action a tool guardrail should take after evaluation.

  • allow: proceed to the next guardrail or tool execution/output handling.
  • rejectContent: treat the guardrail as rejecting the call/output and short‑circuit with a message.
  • throwException: escalate immediately as a tripwire to fail fast and surface diagnostics.