Skip to content

OpenResponsesDecodeEventContext

Namespace: Vercel.AI.OpenResponses

public sealed class OpenResponsesDecodeEventContext

Input of DecodeEvent.

Inheritance: object

View source

OpenResponsesDecodeEventContext(JsonObject, IDictionary<string, object?>)

Section titled “OpenResponsesDecodeEventContext(JsonObject, IDictionary<string, object?>)”
public OpenResponsesDecodeEventContext(JsonObject @event, IDictionary<string, object?> state)

Creates the context.

Parameters

Name Type Description
event JsonObject
state IDictionary<string, object>

View source

public JsonObject Event { get; }

The event. It has a namespaced type and a numeric sequence_number.

Value: JsonObject

View source

public IDictionary<string, object?> State { get; }

State that lasts for one response stream.

Value: IDictionary<string, object>

View source

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