Skip to content

toAnthropic

toAnthropic(response): Promise<AnthropicResponse>

Defined in: converters/response-converters.ts:64

Convert Universal IR response to Anthropic format.

IRChatResponse

Universal IR response

Promise<AnthropicResponse>

Anthropic-formatted response

import { toAnthropic } from 'ai.matey.utils';
const irResponse = await backend.execute(request);
const anthropicFormat = await toAnthropic(irResponse);