MCPcopy
hub / github.com/codeaashu/claude-code / extractRequestId

Function extractRequestId

src/utils/permissions/yoloClassifier.ts:624–628  ·  view source on GitHub ↗

* Extract the API request_id (req_xxx) that the SDK attaches as a * non-enumerable `_request_id` property on response objects.

(
  result: Anthropic.Beta.Messages.BetaMessage,
)

Source from the content-addressed store, hash-verified

622 * non-enumerable `_request_id` property on response objects.
623 */
624function extractRequestId(
625 result: Anthropic.Beta.Messages.BetaMessage,
626): string | undefined {
627 return (result as { _request_id?: string | null })._request_id ?? undefined
628}
629
630/**
631 * Combine usage from two classifier stages into a single total.

Callers 2

classifyYoloActionXmlFunction · 0.85
classifyYoloActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected