Skip to content

GenerateTextResult<TOutput>

Namespace: Vercel.AI

public sealed class GenerateTextResult<TOutput> : GenerateTextResult, IOperationEndEvent

Result of generateText whose parsed output has the type of the OutputSpec%601 of the call. Maps to GenerateTextResult<TOOLS, OUTPUT>.

Type parameters

Name Description
TOutput The type of the parsed output.

Inheritance: object → GenerateTextResult

Implements: IOperationEndEvent

View source

public TOutput? Output { get; }

The parsed output, or <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/default"&gt;default&lt;/a> when the call generated none, as Output. A mismatch with <code class=“typeparamref”>TOutput</code> throws JsonException. Maps to output.

Value: TOutput

View source

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