@runloop/remote-agents-sdk
    Preparing search index...

    Function hasJsonRpcId

    • Type guard for JSON-RPC 2.0 message ID.

      JSON-RPC IDs can be strings, numbers, or null. This guard checks for the presence of an id property with a valid type.

      Parameters

      • value: unknown

        The value to check.

      Returns value is { id: string | number | null }

      true if value has a valid JSON-RPC id property.