@langchain/anthropic
Version:
Anthropic integrations for LangChain.js
4 lines (3 loc) • 370 B
TypeScript
export type LangChainErrorCodes = "INVALID_PROMPT_INPUT" | "INVALID_TOOL_RESULTS" | "MESSAGE_COERCION_FAILURE" | "MODEL_AUTHENTICATION" | "MODEL_NOT_FOUND" | "MODEL_RATE_LIMIT" | "OUTPUT_PARSING_FAILURE";
export declare function addLangChainErrorFields(error: any, lc_error_code: LangChainErrorCodes): any;
export declare function wrapAnthropicClientError(e: any): any;