Class AnthropicStreamBuffer
public class AnthropicStreamBuffer : SSEStreamBuffer<ChatStreamChunk>
- Inheritance
-
object
AnthropicStreamBuffer
- Inherited Members
-
SSEStreamBuffer<ChatStreamChunk>.jss
SSEStreamBuffer<ChatStreamChunk>.QueueServerEvent(string)
Constructors
AnthropicStreamBuffer(SSEParser, JsonSerializerSettings)
public AnthropicStreamBuffer(SSEParser sseParser, JsonSerializerSettings settings = null)
Parameters
sseParser SSEParser
settings JsonSerializerSettings
Methods
ParseAndAggregate(string, JsonSerializerSettings)
protected override IEnumerable<ChatStreamChunk> ParseAndAggregate(string raw, JsonSerializerSettings jss)
Parameters
raw string
jss JsonSerializerSettings
Returns
- IEnumerable<ChatStreamChunk>
TryGetError(string, JsonSerializerSettings, out ChatStreamChunk)
protected override bool TryGetError(string raw, JsonSerializerSettings jss, out ChatStreamChunk errorChunk)
Parameters
raw string
jss JsonSerializerSettings
errorChunk ChatStreamChunk
Returns
- bool