Parses the chunk response and returns the choice by index.
The index of the choice to find.
An LLMChoiceStreaming object associated with the index.
Gets the citations from the chunk response. Citations are returned by models like Perplexity Sonar that provide source references.
The citations, or undefined if there are none.
Parses the chunk response and returns the delta content.
OptionalchoiceIndex: number
The index of the choice to parse.
The message delta content.
Gets the delta tool calls for a specific choice index.
OptionalchoiceIndex: number
The index of the choice to parse.
The delta tool calls for the specified choice index.
Reason for stopping the completion stream chunk.
OptionalchoiceIndex: number
The index of the choice to parse.
The finish reason.
Gets the intermediate results from the chunk.
The intermediate results.
Usage of tokens in the chunk response.
Token usage.
Orchestration stream chunk response.