Class AnthropicStreamBuffer
Inheritance
object
AnthropicStreamBuffer
Inherited Members
SSEStreamBuffer<ChatStreamChunk>.jss
SSEStreamBuffer<ChatStreamChunk>.QueueServerEvent(string)
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
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
Overrides