import type { Agent } from '../agent'; import type { RunContext } from '../runContext'; export declare const OUTPUT_GUARDRAIL_BLOCKED_TOOL_OUTPUT = "Output withheld by an output guardrail."; export type OutputGuardrailBlockedMessageArgs = { /** * The SDK's default data-free placeholder. */ defaultMessage: string; /** * The name of the output guardrail observed rejecting terminal tool output in the current run. */ guardrailName: string; /** * The agent whose terminal tool output was rejected. */ agent: Agent; /** * The active run context for the current execution. */ runContext: RunContext; }; export type OutputGuardrailBlockedMessageFormatter = (args: OutputGuardrailBlockedMessageArgs) => Promise | string | undefined; export type OutputGuardrailBlockedMessage = string | OutputGuardrailBlockedMessageFormatter; type OutputGuardrailBlockedMessageState = { _currentAgent: Agent; _context: RunContext; }; export declare function createOutputGuardrailBlockedMessageResolver(configured: OutputGuardrailBlockedMessage | undefined, state: OutputGuardrailBlockedMessageState): ((guardrailName: string) => Promise) | undefined; export {};