toAnthropic
toAnthropic(
response):Promise<AnthropicResponse>
Defined in: converters/response-converters.ts:64
Convert Universal IR response to Anthropic format.
Parameters
Section titled “Parameters”response
Section titled “response”Universal IR response
Returns
Section titled “Returns”Promise<AnthropicResponse>
Anthropic-formatted response
Example
Section titled “Example”import { toAnthropic } from 'ai.matey.utils';
const irResponse = await backend.execute(request);const anthropicFormat = await toAnthropic(irResponse);