AI DevKit
Search Results for

    Show / Hide Table of Contents

    Class AnthropicStreamBuffer

    Inheritance
    object
    SSEStreamBuffer<ChatStreamChunk>
    AnthropicStreamBuffer
    Inherited Members
    SSEStreamBuffer<ChatStreamChunk>.jss
    SSEStreamBuffer<ChatStreamChunk>.QueueServerEvent(string)
    Namespace: Glitch9.AIDevKit.Anthropic
    Assembly: .dll
    Syntax
    public class AnthropicStreamBuffer : SSEStreamBuffer<ChatStreamChunk>

    Constructors

    AnthropicStreamBuffer(SSEParser, JsonSerializerSettings)

    Declaration
    public AnthropicStreamBuffer(SSEParser sseParser, JsonSerializerSettings settings = null)
    Parameters
    Type Name Description
    SSEParser sseParser
    JsonSerializerSettings settings

    Methods

    ParseAndAggregate(string, JsonSerializerSettings)

    Declaration
    protected override IEnumerable<ChatStreamChunk> ParseAndAggregate(string raw, JsonSerializerSettings jss)
    Parameters
    Type Name Description
    string raw
    JsonSerializerSettings jss
    Returns
    Type Description
    IEnumerable<ChatStreamChunk>
    Overrides
    Glitch9.IO.Networking.RESTApi.SSEStreamBuffer<Glitch9.AIDevKit.Streaming.ChatStreamChunk>.ParseAndAggregate(string, JsonSerializerSettings)

    TryGetError(string, JsonSerializerSettings, out ChatStreamChunk)

    Declaration
    protected override bool TryGetError(string raw, JsonSerializerSettings jss, out ChatStreamChunk errorChunk)
    Parameters
    Type Name Description
    string raw
    JsonSerializerSettings jss
    ChatStreamChunk errorChunk
    Returns
    Type Description
    bool
    Overrides
    SSEStreamBuffer<ChatStreamChunk>.TryGetError(string, JsonSerializerSettings, out ChatStreamChunk)
    In this article
    Back to top Generated by DocFX