Table of Contents

Interface IGeminiStreamablePostRequest<TResponse>

Namespace
Uralstech.UGemini

All streamed Gemini API POST requests must inherit from this interface.

public interface IGeminiStreamablePostRequest<TResponse> : IGeminiPostRequest, IGeminiRequest where TResponse : IAppendableData<TResponse>

Type Parameters

TResponse

The streamed response type.

Inherited Members
Extension Methods

Properties

StreamedResponse

The response being streamed.

TResponse StreamedResponse { get; }

Property Value

TResponse

Methods

ProcessStreamedData(List<JToken>, JToken)

Callback to process Server Sent Events (SSEs).

Task ProcessStreamedData(List<JToken> allEvents, JToken lastEvent)

Parameters

allEvents List<JToken>

All previously sent SSEs.

lastEvent JToken

The latest SSE.

Returns

Task