export declare class LanguageModelError extends Error { constructor(message: string); } /** * The input is invalid or malformed */ export declare class InvalidInputError extends LanguageModelError { constructor(message: string); } /** * The reqest returns a non-OK status code */ export declare class StatusCodeError extends LanguageModelError { statusCode: number; constructor(statusCode: number, message: string); } /** * The input is not supported by or is incompatible with the model provider * (e.g. using non text for assistant message parts) */ export declare class UnsupportedError extends LanguageModelError { provider: string; constructor(provider: string, message: string); } /** * An output from the model is not recognized by the library. * Please report this issue to the library maintainers. */ export declare class NotImplementedError extends LanguageModelError { provider: string; constructor(provider: string, message: string); } /** * The response from the provider was unexpected. (e.g. no choices returned * in an `OpenAI` completion) */ export declare class InvariantError extends LanguageModelError { provider: string; constructor(provider: string, message: string); } /** * The model refused to process the input. (e.g. `OpenAI` refusal) */ export declare class RefusalError extends LanguageModelError { constructor(message: string); }