Represents a streamed chunk of a tool assisted chat completions response returned by model, based on the provided input.
Represents a streamed chunk of a tool assisted chat completions response returned by model, based on the provided input.
This API is currently in Beta.
While we strive to provide a stable and reliable experience, this feature is still under active development.
As a result, you may encounter unexpected behavior or limitations.
We encourage you to provide feedback to help us improve the feature before its official release.
The arguments for calling the function, generated by the model in JSON format.
Ensure to validate these arguments in your code before invoking the function since the model may not always produce valid JSON.
Termination condition of the generation.
stop means the API returned the full chat completions generated by the model without running into any limits.
length means the generation exceeded max_tokens or the conversation exceeded the max context length.
tool_calls means the API has generated tool calls.
A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be null if there is no bytes representation for the token.
A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be null if there is no bytes representation for the token.
event: tool_status tracks the execution progress of built-in tools, such as calculator or web search functions.
It provides real-time updates on their status and results.