---
title: GetRequestIdString接口
description: "获取请求ID的string类型。"
url: https://www.hiascend.com/document/detail/zh/mindie/latest/mindiellm/llmdev/mindie_llm0133.html
sourcePath: /source/zh/mindie/310/mindiellm/llmdev/mindie_llm0133.html
indexId: 9b9730ed4f9b2c7daba54c66a8690b648bb09ad47cd10cd038dfdac4d36f437c58
---
# GetRequestIdString接口

#### 接口功能

获取请求ID的string类型。


#### 接口格式

```
const std::string GetRequestIdString() const;
```


#### 接口参数

无。


#### 使用样例

构造一个请求ID对象，获取请求ID的string类型。

```
mindie_llm::InferRequestId runtimeReqId1(0);
std::string value = runtimeReqId1.GetRequestIdString();
```


#### 返回值

获取请求ID的string类型。
