MockStreamChunk
Namespace: Vercel.AI.Testing
public sealed class MockStreamChunkOne chunk of a mock language-model stream.
Inheritance: object
Constructors
Section titled “Constructors”MockStreamChunk(string, string?, string?)
Section titled “MockStreamChunk(string, string?, string?)”public MockStreamChunk(string type, string? id = null, string? delta = null)Creates a chunk.
Parameters
| Name | Type | Description |
|---|---|---|
type |
string | |
id |
string | |
delta |
string |
Properties
Section titled “Properties”public string? Delta { get; }Text delta, when Type is text-delta.
Value: string
public string? Id { get; }Chunk id.
Value: string
public string Type { get; }Chunk kind.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product