Skip to content

MockGenerateResult

Namespace: Vercel.AI.Testing

public sealed class MockGenerateResult

Generate result stored in a scripted list.

Inheritance: object

View source

public MockGenerateResult(string text)

Creates a result whose only content is <code class=“paramref”>text</code>.

Parameters

Name Type Description
text string

View source

public IReadOnlyList<MockTextContent> Content { get; }

Generated content.

Value: IReadOnlyList<MockTextContent>

View source

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