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.