StringValue接口
接口功能
获取请求体string类型的序列号。
接口格式
const std::string &StringValue() const;
接口参数
无。
使用样例
构造一个请求ID对象,获取请求对象的数据类型,为string类型。
1 2 | mindie_llm::InferRequestId runtimeReqId1("0"); std::string value = runtimeReqId1.Type(); |
返回值
- 如果请求体序列号为string类型,则返回string类型的序列号。
- 如果请求体序列号为uint64_t类型,则返回空序列号。
父主题: InferRequestId