Response object
|
Research planning phase{
"status_code": 200,
"request_id": "2a6187f0-7e7b-40bb-a87e-xxx",
"code": "",
"message": "",
"output": {
"text": null,
"finish_reason": null,
"choices": null,
"message": {
"phase": "ResearchPlanning",
"role": "assistant",
"content": "",
"extra": {
"deep_research": {}
},
"status": "typing"
},
"fininshed": false,
"fininshed_reason": "null"
},
"usage": {
"input_tokens": 694,
"output_tokens": 0
},
"request_id": "2a6187f0-7e7b-40bb-xxx"
}
Web research phase{
"status_code": 200,
"request_id": "2a6187f0-7e7b-40bb-a87e-xxx",
"code": "",
"message": "",
"output": {
"message": {
"phase": "WebResearch",
"role": "assistant",
"content": "",
"extra": {
"deep_research": {
"query": {
"researchGoal": "By searching",
"query": "",
"id": 1
}
}
},
"status": "streamingQueries"
},
"fininshed": false,
"fininshed_reason": "null"
},
"usage": {
"input_tokens": 694,
"output_tokens": 0
}
}
Keep alive phase{
"status_code": 200,
"request_id": "2a6187f0-7e7b-40bb-a87e-xxx",
"code": "",
"message": "",
"output": {
"message": {
"phase": "KeepAlive",
"role": "assistant",
"content": "",
"extra": {
"deep_research": {}
},
"status": "typing"
},
"fininshed": false,
"fininshed_reason": "null"
},
"usage": {
"input_tokens": 694,
"output_tokens": 0
}
}
Answer phase{
"status_code": 200,
"request_id": "2a6187f0-7e7b-40bb-a87e-xxx",
"code": "",
"message": "",
"output": {
"message": {
"phase": "answer",
"role": "assistant",
"content": ", these promises are mutual",
"extra": {
"deep_research": {
"references": [
{
"icon": "",
"index_number": 1,
"description": "The two xxx envisioned in the plan were never in ",
"title": "History and Background | United Nations - the United Nations",
"url": "https://www.un.org/xxx"
}
]
}
},
"status": "typing"
},
"fininshed": false,
"fininshed_reason": "null"
},
"usage": {
"input_tokens": 694,
"output_tokens": 0
}
}
|
|
status_code string
The HTTP status code for the request. 200 indicates success; other values indicate an error.
On failure, the thrown exception contains status_code and message.
|
|
request_id string
The unique identifier for the request.
|
|
code string
The error code. This field is empty on success.
This parameter is returned only by the Python SDK.
|
|
message string
The error message. This field is empty on success.
|
|
output object
The result of the call.
Fields
text string
This parameter is always null.
finish_reason string
The reason the model stopped generating content. Possible values:
-
null: Generation is in progress.
-
stop: Generation ended naturally.
-
length: The maximum content length was reached.
choices array
A list of output choices from the model.
Fields
finish_reason string
Possible values:
-
null: Generation is in progress.
-
stop: Generation ended naturally.
-
length: The maximum content length was reached.
message object
The message object from the model.
Fields
Properties
phase string
Current phase. Possible values:
-
answer
-
ResearchPlanning
-
WebResearch
-
KeepAlive
role string
Must be assistant.
content string
The output content from the model.
extra array
Web search results and references gathered by the model.
deep_research object
Retrieved web search and reference information is included only in the answer and WebResearch stages, and is null in all other stages.
research object
Details of the research process.
Fields
researchGoal string
The research goal.
query string
Search query used during research.
id integer
The search round number, in the range of [1, 15].
learningMap object
Content summarized from tool calls, associated with the tool usage.
references object
Citations for the generated answer. This field appears only in the Answer phase.
Fields
icon string
The favicon URL for the referenced content.
index_number integer
The index of the referenced content.
description string
A short description of the referenced content.
title string
The title of the referenced web page.
url string
The URL of the referenced content.
webSites object
Content referenced during research. Included only in the Web Research phase.
Fields
icon string
The favicon URL for the referenced content.
index_number integer
The index of the referenced content.
description string
A short description of the referenced content.
title string
The web page title of the referenced content.
url string
The URL of the referenced content.
status string
The status of a specific phase during streaming:
-
typing: The model is generating content for the current phase.
-
finished: The current phase is complete.
-
streamingQueries: The model is generating research goals and search queries.
-
streamingWebResult: Web search, page reading, and code execution are in progress.
-
WebResultFinished: The web search phase is complete.
fininshed boolean
Whether the stream is complete. Possible values:
fininshed_reason string
The reason the streaming output ended. Possible values:
|
|
usage object
The number of tokens used in this request.
Fields
input_tokens integer
The number of input tokens.
output_tokens integer
The number of output tokens.
|