EventSourceMessage
Namespace: Vercel.AI.ProviderUtils
public sealed class EventSourceMessageOne Server-Sent Event. Field names are compared without case folding.
Inheritance: object
Constructors
Section titled “Constructors”EventSourceMessage(string, string?, string?)
Section titled “EventSourceMessage(string, string?, string?)”public EventSourceMessage(string data, string? eventType, string? id)Creates a message.
Parameters
| Name | Type | Description |
|---|---|---|
data |
string | |
eventType |
string | |
id |
string |
Properties
Section titled “Properties”public string Data { get; }Joined data fields.
Value: string
public string? Event { get; }Event type. Null when the stream did not set one.
Value: string
public string? Id { get; }Event id. Null when the stream did not set one.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product