Class GeminiStreamBuffer
Inheritance
object
GeminiStreamBuffer
Inherited Members
SSEStreamBuffer<SSEChunk<GenerateContentResponse>>.jss
SSEStreamBuffer<SSEChunk<GenerateContentResponse>>.QueueServerEvent(string)
Assembly: .dll
Syntax
public class GeminiStreamBuffer : SSEStreamBuffer<SSEChunk<GenerateContentResponse>>
Constructors
GeminiStreamBuffer(JsonSerializerSettings)
Declaration
public GeminiStreamBuffer(JsonSerializerSettings settings = null)
Parameters
Type |
Name |
Description |
JsonSerializerSettings |
settings |
|
Methods
ParseAndAggregate(string, JsonSerializerSettings)
Declaration
protected override IEnumerable<SSEChunk<GenerateContentResponse>> ParseAndAggregate(string raw, JsonSerializerSettings jss)
Parameters
Type |
Name |
Description |
string |
raw |
|
JsonSerializerSettings |
jss |
|
Returns
Overrides
Glitch9.IO.Networking.RESTApi.SSEStreamBuffer<Glitch9.IO.Networking.RESTApi.SSEChunk<Glitch9.AIDevKit.Google.GenerateContentResponse>>.ParseAndAggregate(string, JsonSerializerSettings)
TryGetError(string, JsonSerializerSettings, out SSEChunk<GenerateContentResponse>)
Declaration
protected override bool TryGetError(string raw, JsonSerializerSettings jss, out SSEChunk<GenerateContentResponse> errorChunk)
Parameters
Returns
Overrides