event: tool_status
data: {
  "tool_call_id": "call_3QrfStXSU6fGdOGPcETocIAq",
  "name": "math:calculator",
  "status": "STARTED",
  "parameters": [{ "name": "expression", "value": "150 * 1.60934" }],
  "result": null,
  "files": null,
  "message": null,
  "error": null,
  "usage": null,
  "timestamp": 1726277121
}

event: tool_status
data: {
  "tool_call_id": "call_3QrfStXSU6fGdOGPcETocIAq",
  "name": "math:calculator",
  "status": "ENDED",
  "parameters": [{ "name": "expression", "value": "150 * 1.60934" }],
  "result": "\"{\\\"result\\\": \\\"150 * 1.60934=241.401000000000\\\"}\"",
  "files": null,
  "message": null,
  "error": null,
  "usage": null,
  "timestamp": 1726277121
}

data: {
  "id": "chatcmpl-4b71d12c86d94e719c7e3984a7bb7941",
  "model": "meta-llama-3.1-8b-instruct",
  "object": "chat.completion.chunk",
  "choices": [
    {
      "index": 0,
      "delta": { "role": "assistant", "content": "To" },
      "finish_reason": null,
      "logprobs": null
    }
  ],
  "created": 1726277121
}

...

data: {
  "id": "chatcmpl-4b71d12c86d94e719c7e3984a7bb7941",
  "model": "meta-llama-3.1-8b-instruct",
  "object": "chat.completion.chunk",
  "choices": [
    {
      "index": 0,
      "delta": { "role": "assistant", "content": "." },
      "finish_reason": null,
      "logprobs": null
    }
  ],
  "created": 1726277121
}

data: {
  "id": "chatcmpl-4b71d12c86d94e719c7e3984a7bb7941",
  "model": "meta-llama-3.1-8b-instruct",
  "object": "chat.completion.chunk",
  "choices": [
    {
      "index": 0,
      "delta": {},
      "finish_reason": "stop",
      "logprobs": null
    }
  ],
  "created": 1726277121
}

data: [DONE]

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.

event: tool_status
data: {
  "tool_call_id": "call_3QrfStXSU6fGdOGPcETocIAq",
  "name": "math:calculator",
  "status": "STARTED",
  "parameters": [{ "name": "expression", "value": "150 * 1.60934" }],
  "result": null,
  "files": null,
  "message": null,
  "error": null,
  "usage": null,
  "timestamp": 1726277121
}

event: tool_status
data: {
  "tool_call_id": "call_3QrfStXSU6fGdOGPcETocIAq",
  "name": "math:calculator",
  "status": "ENDED",
  "parameters": [{ "name": "expression", "value": "150 * 1.60934" }],
  "result": "\"{\\\"result\\\": \\\"150 * 1.60934=241.401000000000\\\"}\"",
  "files": null,
  "message": null,
  "error": null,
  "usage": null,
  "timestamp": 1726277121
}

data: {
  "id": "chatcmpl-4b71d12c86d94e719c7e3984a7bb7941",
  "model": "meta-llama-3.1-8b-instruct",
  "object": "chat.completion.chunk",
  "choices": [
    {
      "index": 0,
      "delta": { "role": "assistant", "content": "To" },
      "finish_reason": null,
      "logprobs": null
    }
  ],
  "created": 1726277121
}

...

data: {
  "id": "chatcmpl-4b71d12c86d94e719c7e3984a7bb7941",
  "model": "meta-llama-3.1-8b-instruct",
  "object": "chat.completion.chunk",
  "choices": [
    {
      "index": 0,
      "delta": { "role": "assistant", "content": "." },
      "finish_reason": null,
      "logprobs": null
    }
  ],
  "created": 1726277121
}

data: {
  "id": "chatcmpl-4b71d12c86d94e719c7e3984a7bb7941",
  "model": "meta-llama-3.1-8b-instruct",
  "object": "chat.completion.chunk",
  "choices": [
    {
      "index": 0,
      "delta": {},
      "finish_reason": "stop",
      "logprobs": null
    }
  ],
  "created": 1726277121
}

data: [DONE]
id
string
required

A unique ID of the chat completion.

object
string
required

The object type, which is always set to chat.completion.chunk.

model
string
required

The model to generate the completion.

choices
object[]
required
usage
object | null
created
integer
required

The Unix timestamp (in seconds) for when the token sampled.

event: tool_status chunk object

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.

tool_call_id
string
required

The ID of the tool call.

name
enum<string>
required

The name of the built-in tool.

Available options: math:calculator, math:statistics, math:calendar, web:search, web:url, code:python-interpreter, file:text

status
enum<string>
required

Indicates the current execution status of the tool.

Available options: STARTED, UPDATING, ENDED, ERRORED

parameters
object[]
required
result
string | null

The output from the tool’s execution.

files
object[] | null
message
string | null

Message generated by the tool’s execution.

error
object | null
timestamp
number
required

The Unix timestamp (in seconds) for when the event occurred.