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) 602 B
import { ChatMessage } from '../../../types/chat'; import { GenericToolSchema, StandardizedToolCall } from '../../../types/tool'; import { VertexToolSchema, VertexModel } from './types'; export declare function convertToolSchema(schema: GenericToolSchema, modelType: VertexModel): VertexToolSchema; export declare function convertToolCall(toolCall: any, modelType: VertexModel): StandardizedToolCall; export declare function convertMessages(messages: ChatMessage[], modelType: VertexModel): any[]; export declare function extractToolCalls(content: any, modelType: VertexModel): StandardizedToolCall[];