Skip to content

InvalidPromptException

Namespace: Vercel.AI.Prompt

public sealed class InvalidPromptException : AiSdkException, ISerializable

The prompt input is invalid. Maps to InvalidPromptError.

Inheritance: object → Exception → AiSdkException

Implements: ISerializable

View source

public InvalidPromptException(string message)

Creates the exception.

Parameters

Name Type Description
message string

View source

public string Name { get; }

Stable error name.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product