Interface IGeminiStreamablePostRequest<TResponse>
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
JTokenThe latest SSE.