UNPKG

@nomyx/assistant

Version:

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

12 lines (11 loc) 1 kB
import { ChatMessage } from '../../../types/chat'; import { GenericToolSchema, ParameterDefinition, StandardizedToolCall } from '../../../types/tool'; import { OpenRouterMessage, OpenRouterTool, OpenRouterToolCall } from './types'; export declare function convertMessages(messages: ChatMessage[]): OpenRouterMessage[]; export declare function convertToolSchema(schema: GenericToolSchema): OpenRouterTool; export declare function convertParameters(params: Record<string, ParameterDefinition>): Record<string, ParameterDefinition>; export declare function convertParameterDefinition(param: ParameterDefinition): ParameterDefinition; export declare function convertToolCall(call: OpenRouterToolCall): StandardizedToolCall; export declare function validateToolCall(toolCall: StandardizedToolCall): void; export declare function convertToolCalls(toolCalls: OpenRouterToolCall[] | undefined): StandardizedToolCall[]; export declare function extractToolCalls(message: OpenRouterMessage): StandardizedToolCall[];