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 search 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
}
}
Persistent connection 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
}
}
Follow-up question and 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 status code of the request. A value of 200 indicates success. Other values indicate failure. If the call fails, an exception is thrown. The exception message contains the values of the status_code and message parameters. |
request_id string The unique identifier for the call. |
code string The error code. This parameter is empty if the call is successful. Only the Python SDK returns this parameter. |
message string The error message. This parameter is empty if the call is successful. |
output object The information about the result of the call. Properties text string This parameter is currently fixed to null. finish_reason string The reason the model stopped generating output. Valid values: null: Generation is in progress.
stop: The model stopped generating the output naturally.
length: The output was stopped because it reached the maximum length.
choices array The output information from the model. Properties finish_reason string Consider the following scenarios: null: Generation is in progress.
stop: The model stopped generating the output naturally.
length: The output was stopped because it reached the maximum length.
message object The message object output by the model. Properties Properties phase string The current phase of the process. The value can be one of the following: answer: The follow-up question and answer phase. ResearchPlanning: The research planning phase. WebResearch: The web search phase. KeepAlive: The persistent connection phase.
role string The role of the output message. The value is fixed to assistant. content string The output content from the model. extra array The web search and reference information that is retrieved by the model. deep_research object Contains web search and reference information. This parameter is returned only in the answer and WebResearch phases. In other phases, the value of this parameter is null. research object Information about the model's research process and content. Properties researchGoal string The research goal. query string The search content used during the research process. id integer The search round. The value ranges from 1 to 15. learningMap object The content that is summarized from the tool call. This parameter is associated with the tool call. references object The content that is referenced by the model to generate the response. This parameter is returned only in the answer phase. Properties icon string The link to the favicon of the referenced URL. index_number integer The index of the reference. description string A brief description of the reference. title string The web page title of the reference. url string The URL of the reference web page. webSites object The content that is referenced by the model during the research process. This parameter is returned only in the web search phase. Properties icon string The link to the favicon of the referenced URL. index_number integer The index of the reference. description string A brief description of the reference. title string The web page title of the reference. url string The URL of the reference web page. status string The status of the different phases in the model's output process: typing: The content for this phase is being generated. finished: The phase is complete. streamingQueries: The research goals and search queries are being generated. streamingWebResult: Search, web page reading, and code execution are in progress. WebResultFinished: The web search phase is complete.
finished boolean Indicates whether the streaming output of the model's content is complete. Valid values: finished_reason string Indicates the reason why the streaming output of the model's content ended. Valid values: |
usage object Information about the tokens used in this request. Properties input_tokens integer The number of input tokens. output_tokens integer The number of output tokens. |