Class MultiResponseStreamHandler
Inheritance
object
MultiResponseStreamHandler
Implements
ITextStreamHandler
Assembly: .dll
Syntax
public class MultiResponseStreamHandler : ChatCompletionStreamHandler, IChatCompletionStreamHandler, ITextStreamHandler
Constructors
MultiResponseStreamHandler(Action, Action<ChatDelta[]>, Action<string>, Action<ChatCompletion>)
Declaration
public MultiResponseStreamHandler(Action onStart = null, Action<ChatDelta[]> onDeltaChunk = null, Action<string> onError = null, Action<ChatCompletion> onDone = null)
Parameters
Type |
Name |
Description |
Action |
onStart |
|
Action<ChatDelta[]> |
onDeltaChunk |
|
Action<string> |
onError |
|
Action<ChatCompletion> |
onDone |
|
Fields
onDeltaChunk
Declaration
public Action<ChatDelta[]> onDeltaChunk
Field Value
Methods
CreateResult()
Declaration
protected override ChatCompletion CreateResult()
Returns
Overrides
OnReceiveChunk(ChatCompletionChunk)
Declaration
protected override void OnReceiveChunk(ChatCompletionChunk chunk)
Parameters
Overrides
Implements
ITextStreamHandler