(msg: Anthropic.Message)
| 60 | : new Anthropic({ apiKey: input.apiKey, baseURL: input.baseUrl }); |
| 61 | |
| 62 | const extract = (msg: Anthropic.Message): string => msg.content |
| 63 | .filter((b): b is Anthropic.TextBlock => b.type === 'text') |
| 64 | .map((b) => b.text) |
| 65 | .join(''); |
| 66 | |
| 67 | try { |
| 68 | const msg = await client.messages.create({ |
no outgoing calls
no test coverage detected