Skip to content

MockTextContent

Namespace: Vercel.AI.Testing

public sealed class MockTextContent

Text content returned by a mock generate result.

Inheritance: object

View source

public MockTextContent(string text)

Creates text content.

Parameters

Name Type Description
text string

View source

public string Text { get; }

Generated text.

Value: string

View source

public string Type { get; }

Always text.

Value: string

View source

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