Class JambaChoice
Inherited Members
Namespace: Glitch9.AIDevKit.AI21Labs
Assembly: Glitch9.AIDevKit.Provider.AI21.dll
Syntax
public class JambaChoice
Properties
| Edit this page View SourceFinishReason
Required. Why the message ended.
stop ??The response ended naturally as a complete answer (due to end-of-sequence token) or because the model generated a stop sequence provided in the request.
length ??The response ended by reaching max_tokens.
Declaration
[JsonProperty("finish_reason")]
public FinishReason FinishReason { get; set; }
Property Value
| Type | Description |
|---|---|
| FinishReason |
Index
Required. Zero-based index of the message in the list of messages. Note that this might not correspond with the position in the response list.
Declaration
[JsonProperty("index")]
public int Index { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Message
Required. The message generated by the model. Includes two fields: role and content.
Declaration
[JsonProperty("message")]
public Message Message { get; set; }
Property Value
| Type | Description |
|---|---|
| Message |
ToolCalls
Optional. Tool calls only occur if a tools parameter was specified in the request. These tool calls apply solely to the current message, and returned values should be added to the message thread in both the assistant message tool_calls fields and the tool message.
Declaration
[JsonProperty("tool_calls")]
public ToolCall[] ToolCalls { get; set; }
Property Value
| Type | Description |
|---|---|
| ToolCall[] |