()
| 69564 | * or add one of these imports before your first `import … from '@anthropic-ai/sdk'`: |
| 69565 | * - `import '@anthropic-ai/sdk/shims/node'` (if you're running on Node) |
| 69566 | * - `import '@anthropic-ai/sdk/shims/web'` (otherwise) |
| 69567 | */ |
| 69568 | async withResponse() { |
| 69569 | const [data, response] = await Promise.all([this.parse(), this.asResponse()]); |
| 69570 | return { data, response }; |
| 69571 | } |
| 69572 | parse() { |
| 69573 | if (!this.parsedPromise) { |
| 69574 | this.parsedPromise = this.responsePromise.then(this.parseResponse); |
no test coverage detected