GenerateTextResult<TOutput>
Namespace: Vercel.AI
public sealed class GenerateTextResult<TOutput> : GenerateTextResult, IOperationEndEventResult 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
Properties
Section titled “Properties”Output
Section titled “Output”public TOutput? Output { get; }The parsed output, or <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/default">default</a> when the call generated none, as Output.
A mismatch with <code class=“typeparamref”>TOutput</code> throws JsonException. Maps to output.
Value: TOutput
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product