StringValue

Function

Obtains the sequence number of the string type from a request body.

Format

const std::string &StringValue() const;

Parameters

None

Usage Example

Construct a request ID object and obtain the data type (string) of the request object.

1
2
mindie_llm::InferRequestId runtimeReqId1("0");
std::string value = runtimeReqId1.Type();

Return Value

  • If the sequence number of the request body is of the string type, the sequence number of the string type is returned.
  • If the sequence number of the request body is of the uint64_t type, an empty sequence number is returned.