MockTextContent
Namespace: Vercel.AI.Testing
public sealed class MockTextContentText content returned by a mock generate result.
Inheritance: object
Constructors
Section titled “Constructors”MockTextContent(string)
Section titled “MockTextContent(string)”public MockTextContent(string text)Creates text content.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string |
Properties
Section titled “Properties”public string Text { get; }Generated text.
Value: string
public string Type { get; }Always text.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product