@nomyx/assistant
Version:
A powerful assistant library and cli for your AI projects. works with Vertex AI (Claude and Gemini)
34 lines (28 loc) • 610 B
text/typescript
import { StandardizedToolCall } from './tool';
export interface StreamedResponse {
content?: string;
toolCalls?: StandardizedToolCall[];
}
export interface ChatMessage {
role: string;
content: string;
name?: string; // Add this line
}
export interface ChatOptions {
maxTokens?: number;
temperature?: number;
topP?: number;
}
export interface ProviderResponse {
content: string;
toolCalls?: StandardizedToolCall[];
usage?: {
promptTokens: number;
completionTokens: number;
totalTokens: number;
};
}
export interface FunctionCall {
name: string;
arguments: string;
}