# BaseResponse 类 (/zh-CN/api-reference/conversational-ai/restclient-go/baseresponse.go) > For AI agents: see the complete documentation index at [llms.txt](/llms.txt). ## GetRequestID [#getrequestid] ```go func (r *BaseResponse) GetRequestID() string ``` 从响应中获取请求 ID。 :::info[信息] 自 v0.7.0 版本新增。 ::: #### 返回值 [#返回值] - 方法调用成功时,返回响应头中的请求 ID(`X-Request-Id`)。 - 方法调用失败,返回空字符串。