UNPKG

ttc-ai-client

Version:

TypeScript client sdk for TTC AI services with decorators and schema validation.

41 lines 2.12 kB
/// <reference types="node" /> import { ttcAI } from "./ttcAI"; import { f_response, f_schema } from "./types"; export declare class TTCInternal { token: string; ai?: ttcAI; function_response_cache: any; constructor(); _setttcAI: (ai: ttcAI) => void; fetchAppFunctions(conversation_id: string): Promise<string>; getFunctionDetails: (functionName: string) => f_schema; takeNote: (conversation_id: string, note: string) => Promise<void>; searchChatHistory: (conversation_id: string, startIndex: number, endIndex: number, query: string) => Promise<any>; takeScreenshot: (conversation_id: string, x?: number, y?: number, width?: number, height?: number) => Promise<string>; getEnvironment: () => { current_url: string; userAgent: string; language: string; nodeVersion?: undefined; platform?: undefined; arch?: undefined; } | { nodeVersion: string; platform: NodeJS.Platform; arch: NodeJS.Architecture; current_url?: undefined; userAgent?: undefined; language?: undefined; }; searchLongtermMemory: (conversation_id: string, startIndex: number, endIndex: number, query: string) => Promise<any[]>; storeLongtermMemory: (conversation_id: string, note: string) => Promise<string>; invokeTCC: (conversation_id: string, command: 'get_assistants' | 'summarize' | 'get_models' | 'get_active_sentinels') => Promise<any>; changeToModel: (conversation_id: string, model_id: string, type: string) => Promise<any>; sendMessage: (conversation_id: string, message: string) => void; sendFunctionResponse: (conversation_id: string, response: f_response[], image_urls: string[]) => Promise<void>; speakToUser: (conversation_id: string, message: string) => Promise<void>; speakToAssistant: (conversational_id: string, sender_conversation_id: string, message: string) => Promise<void>; invokeInternal: (conversation_id: string, functionName: string, args: any) => Promise<any>; get_internal_functions(): f_schema[]; } //# sourceMappingURL=internal.d.ts.map