UGemini 2.0.1
A C# wrapper for the Google Gemini API.
Loading...
Searching...
No Matches
Uralstech.UGemini.IGeminiStreamablePostRequest< TResponse > Interface Template Reference

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

Inheritance diagram for Uralstech.UGemini.IGeminiStreamablePostRequest< TResponse >:
Uralstech.UGemini.IGeminiPostRequest Uralstech.UGemini.IGeminiRequest

Public Member Functions

Task ProcessStreamedData (List< JToken > allEvents, JToken lastEvent)
 Callback to process Server Sent Events (SSEs).
 
- Public Member Functions inherited from Uralstech.UGemini.IGeminiPostRequest
string GetUtf8EncodedData ()
 Converts the request object to a UTF-8 encoded string.
 
- Public Member Functions inherited from Uralstech.UGemini.IGeminiRequest
string GetEndpointUri (GeminiRequestMetadata metadata)
 Gets the URI to the API endpoint.
 

Properties

TResponse StreamedResponse [get]
 The response being streamed.
 
- Properties inherited from Uralstech.UGemini.IGeminiPostRequest
string ContentType [get]
 The MIME type of the request content.
 

Detailed Description

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

Template Parameters
TResponseThe streamed response type.
Type Constraints
TResponse :IAppendableData<TResponse> 

Member Function Documentation

◆ ProcessStreamedData()

Task Uralstech.UGemini.IGeminiStreamablePostRequest< TResponse >.ProcessStreamedData ( List< JToken > allEvents,
JToken lastEvent )

Callback to process Server Sent Events (SSEs).

Parameters
allEventsAll previously sent SSEs.
lastEventThe latest SSE.

The documentation for this interface was generated from the following file: