import { InputGuardrailResult, OutputGuardrailResult } from '../guardrails'; /** * Base class for all exceptions in the Agents SDK. */ export declare class AgentsException extends Error { constructor(message: string); } /** * Exception raised when the maximum number of turns is exceeded. */ export declare class MaxTurnsExceeded extends AgentsException { /** * The error message */ message: string; constructor(message: string); } /** * Exception raised when the model does something unexpected, e.g. calling a tool that doesn't * exist, or providing malformed JSON. */ export declare class ModelBehaviorError extends AgentsException { /** * The error message */ message: string; constructor(message: string); } /** * Exception raised when the user makes an error using the SDK. */ export declare class UserError extends AgentsException { /** * The error message */ message: string; constructor(message: string); } /** * Exception raised when a guardrail tripwire is triggered. */ export declare class InputGuardrailTripwireTriggered extends AgentsException { /** * The result data of the guardrail that was triggered. */ guardrail_result: InputGuardrailResult; constructor(guardrail_result: InputGuardrailResult); } /** * Exception raised when a guardrail tripwire is triggered. */ export declare class OutputGuardrailTripwireTriggered extends AgentsException { /** * The result data of the guardrail that was triggered. */ guardrail_result: OutputGuardrailResult; constructor(guardrail_result: OutputGuardrailResult); }