MockGenerateResult
Namespace: Vercel.AI.Testing
public sealed class MockGenerateResultGenerate result stored in a scripted list.
Inheritance: object
Constructors
Section titled “Constructors”MockGenerateResult(string)
Section titled “MockGenerateResult(string)”public MockGenerateResult(string text)Creates a result whose only content is <code class=“paramref”>text</code>.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string |
Properties
Section titled “Properties”Content
Section titled “Content”public IReadOnlyList<MockTextContent> Content { get; }Generated content.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product