EdgeAIG/opencode / .opencode /node_modules /@ai-sdk /provider /src /errors /invalid-argument-error.ts
EdgeAIG's picture
download
raw
679 Bytes
import { AISDKError } from './ai-sdk-error';
const name = 'AI_InvalidArgumentError';
const marker = `vercel.ai.error.${name}`;
const symbol = Symbol.for(marker);
/**
* A function argument is invalid.
*/
export class InvalidArgumentError extends AISDKError {
private readonly [symbol] = true; // used in isInstance
readonly argument: string;
constructor({
message,
cause,
argument,
}: {
argument: string;
message: string;
cause?: unknown;
}) {
super({ name, message, cause });
this.argument = argument;
}
static isInstance(error: unknown): error is InvalidArgumentError {
return AISDKError.hasMarker(error, marker);
}
}

Xet Storage Details

Size:
679 Bytes
·
Xet hash:
4e4c0aa5b456c269e4f83b375d88f2302cbda424e5d6d3f268bfb8a9deabbe79

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.