* 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, )
| 622 | * non-enumerable `_request_id` property on response objects. |
| 623 | */ |
| 624 | function 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. |
no outgoing calls
no test coverage detected