RequestId接口

接口功能

使用已有的requestId初始化RequestId对象。

接口格式

RequestId(const SimpleLLMInference::RequestId &other);

接口参数

参数

是否必选

说明

取值要求

other

必选

已有的RequestId对象。

合法的请求体对象。

使用样例

请求ID类的拷贝构造函数。

1
2
3
4
std::string requestLabel = "123";
RequestId requestId1 = requestLabel;

RequestId requestId2(requestId1);

返回值

RequestId对象。