Class JambaStreamEvent
Inheritance
JambaStreamEvent
Assembly: Glitch9.AIDevKit.Provider.AI21.dll
Syntax
public sealed class JambaStreamEvent : IProjector<ChatCompletionEvent>, ICompletableEvent, IEvent
Properties
|
Edit this page
View Source
Choices
Required. An array with one object containing the following fields.
Declaration
[JsonProperty("choices")]
public JambaStreamChoice[] Choices { get; set; }
Property Value
|
Edit this page
View Source
Id
Required. Unique ID for each request (not message).
Same ID for all streaming responses.
Declaration
[JsonProperty("id")]
public string Id { get; set; }
Property Value
|
Edit this page
View Source
Usage
Optional. The token counts for this request.
Will be null except for the last chunk which contains the usage statistics.
Declaration
[JsonProperty("usage")]
public Usage Usage { get; set; }
Property Value
Methods
|
Edit this page
View Source
FirstOutputText()
Declaration
public string FirstOutputText()
Returns
|
Edit this page
View Source
GetGeneratedTexts()
Declaration
public List<string> GetGeneratedTexts()
Returns
|
Edit this page
View Source
IsDone()
Declaration
Returns
|
Edit this page
View Source
IsValid()
Declaration
Returns
|
Edit this page
View Source
Project()
Declaration
public ChatCompletionEvent Project()
Returns
Implements
Extension Methods