AI DevKit
Search Results for

    Show / Hide Table of Contents

    Class GeminiStreamBuffer

    Inheritance
    object
    SSEStreamBuffer<SSEChunk<GenerateContentResponse>>
    GeminiStreamBuffer
    Inherited Members
    SSEStreamBuffer<SSEChunk<GenerateContentResponse>>.jss
    SSEStreamBuffer<SSEChunk<GenerateContentResponse>>.QueueServerEvent(string)
    Namespace: Glitch9.AIDevKit.Google
    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
    Type Description
    IEnumerable<SSEChunk<GenerateContentResponse>>
    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
    Type Name Description
    string raw
    JsonSerializerSettings jss
    SSEChunk<GenerateContentResponse> errorChunk
    Returns
    Type Description
    bool
    Overrides
    SSEStreamBuffer<SSEChunk<GenerateContentResponse>>.TryGetError(string, JsonSerializerSettings, out SSEChunk<GenerateContentResponse>)
    In this article
    Back to top Generated by DocFX