import { Schema } from 'effect';
export declare const getAgentNotFoundMessage: (id: string) => string;
export declare const getAgentAlreadyExistsMessage: (id: string) => string;
export declare const getAgentCreationMessage: (id: string) => string;
declare const AgentNotFoundError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
readonly _tag: "AgentNotFoundError";
} & Readonly;
/**
* Error thrown when an agent is not found by ID.
*/
export declare class AgentNotFoundError extends AgentNotFoundError_base<{
readonly id: string;
readonly message?: string;
}> {
}
declare const AgentAlreadyExistsError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
readonly _tag: "AgentAlreadyExistsError";
} & Readonly;
/**
* Error thrown when attempting to create an agent with an ID that already exists.
*/
export declare class AgentAlreadyExistsError extends AgentAlreadyExistsError_base<{
readonly id: string;
readonly message?: string;
}> {
}
declare const AgentCreationError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
readonly _tag: "AgentCreationError";
} & Readonly;
/**
* Error thrown when agent creation fails.
*/
export declare class AgentCreationError extends AgentCreationError_base<{
readonly id: string;
readonly message?: string;
readonly cause: unknown;
}> {
}
declare const AgentExecutionError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
readonly _tag: "AgentExecutionError";
} & Readonly;
/**
* Error thrown when agent execution fails.
*/
export declare class AgentExecutionError extends AgentExecutionError_base<{
readonly agentId: string;
readonly message: string;
readonly cause?: unknown;
}> {
}
declare const AgentInputValidationError_base: Schema.TaggedErrorClass;
} & {
agentId: typeof Schema.String;
message: typeof Schema.String;
cause: Schema.optional;
}>;
/** Raised before provider/tool execution when an agent input fails its schema. */
export declare class AgentInputValidationError extends AgentInputValidationError_base {
}
declare const AgentOutputValidationError_base: Schema.TaggedErrorClass;
} & {
agentId: typeof Schema.String;
attempts: typeof Schema.Number;
maxRetries: typeof Schema.Number;
message: typeof Schema.String;
cause: Schema.optional;
}>;
/** Raised after malformed structured output retries are exhausted. */
export declare class AgentOutputValidationError extends AgentOutputValidationError_base {
}
declare const MissingPromptSourceAdapterError_base: Schema.TaggedErrorClass;
} & {
agentId: typeof Schema.String;
functionName: typeof Schema.String;
message: typeof Schema.String;
}>;
/** Raised when a BAML prompt is used without the fred-baml adapter layer. */
export declare class MissingPromptSourceAdapterError extends MissingPromptSourceAdapterError_base {
}
declare const PromptResolutionError_base: Schema.TaggedErrorClass;
} & {
agentId: typeof Schema.String;
source: Schema.Literal<["string", "template", "baml"]>;
message: typeof Schema.String;
cause: Schema.optional;
}>;
/** Raised when a configured prompt source cannot be rendered. */
export declare class PromptResolutionError extends PromptResolutionError_base {
}
declare const AgentFileParseError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
readonly _tag: "AgentFileParseError";
} & Readonly;
/**
* Error thrown when parsing or validating an agent markdown file fails.
*/
export declare class AgentFileParseError extends AgentFileParseError_base<{
readonly filePath: string;
readonly message: string;
}> {
}
/**
* Union type for all agent errors, enabling exhaustive catchTag handling.
*/
export type AgentError = AgentNotFoundError | AgentAlreadyExistsError | AgentCreationError | AgentExecutionError | AgentInputValidationError | AgentOutputValidationError | MissingPromptSourceAdapterError | PromptResolutionError | AgentFileParseError;
export {};
//# sourceMappingURL=errors.d.ts.map