Skip to content

JsonInstructionText

Namespace: Vercel.AI.GenerateText

public readonly struct JsonInstructionText

An optional string that can be omitted, null, or set. Distinguishes a missing argument from null.

View source

public bool IsSet { get; }

True when the caller passed a value, including null.

Value: bool

View source

public static JsonInstructionText Null { get; }

The argument was passed as null.

Value: JsonInstructionText

View source

public static JsonInstructionText Unset { get; }

The argument was omitted.

Value: JsonInstructionText

View source

public string? Value { get; }

The text, when IsSet is true.

Value: string

View source

public static JsonInstructionText From(string? value)

The argument was passed as <code class=“paramref”>value</code>.

Parameters

Name Type Description
value string

Returns: JsonInstructionText

View source

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