OpenClaw SDK
    Preparing search index...

    Function validateRequestId

    • Validates a request ID format.

      Request IDs should be non-empty strings or numbers (if allowed).

      Parameters

      Returns id is string | number

      True if the request ID is valid

      validateRequestId('abc-123'); // true
      validateRequestId(123); // true
      validateRequestId(''); // false
      validateRequestId(null); // false