UNPKG

@nomyx/assistant

Version:

A powerful assistant library and cli for your AI projects. works with Vertex AI (Claude and Gemini)

8 lines (7 loc) 585 B
import { ChatMessage } from '../../../types/chat'; import { GenericToolSchema, StandardizedToolCall } from '../../../types/tool'; import { AnthropicMessage, AnthropicToolSchema, AnthropicMessageContent } from './types'; export declare function convertToolSchema(schema: GenericToolSchema): AnthropicToolSchema; export declare function convertToolCall(toolUse: any): StandardizedToolCall; export declare function convertMessages(messages: ChatMessage[]): AnthropicMessage[]; export declare function extractToolCalls(content: string | AnthropicMessageContent[]): StandardizedToolCall[];