InvalidPromptException
Namespace: Vercel.AI.Prompt
public sealed class InvalidPromptException : AiSdkException, ISerializableThe prompt input is invalid. Maps to InvalidPromptError.
Inheritance: object → Exception → AiSdkException
Implements: ISerializable
Constructors
Section titled “Constructors”InvalidPromptException(string)
Section titled “InvalidPromptException(string)”public InvalidPromptException(string message)Creates the exception.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string |
Properties
Section titled “Properties”public string Name { get; }Stable error name.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product