@nomyx/assistant
Version:
A powerful assistant library and cli for your AI projects. works with Vertex AI (Claude and Gemini)
33 lines (32 loc) • 791 B
TypeScript
import { AIProviderConfig } from '../../../types/provider';
import { ParameterDefinition } from '../../../types/tool';
export interface OpenAIProviderConfig extends AIProviderConfig {
model: string;
}
export type OpenAIMessage = {
role: string;
content: string;
name?: string;
function_call?: {
name: string;
arguments: string;
};
};
export type OpenAIFunction = {
name: string;
description: string;
parameters: {
type: string;
properties: Record<string, ParameterDefinition>;
required?: string[];
};
};
export type OpenAIToolCall = {
id: string;
type: 'function';
function: {
name: string;
arguments: string;
};
};
export declare const MODELS_WITHOUT_SYSTEM_MESSAGES: string[];