UNPKG

ttc-ai-client

Version:

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

24 lines 850 B
import { TTCInternal } from "./internal"; import { f_call, f_schema } from "./types"; export declare class ttcAI { functions: Record<string, f_schema>; internal: TTCInternal; on_call: boolean; static ttc_Uri: string; static origins: Record<string, { url: string; name: string; apikey: string; }>; constructor(); init: () => Promise<void>; fetchFunctions(): Promise<void>; invokeFunctions(conversation_id: string, func: f_call): Promise<any>; invokeFunctionWithPermission(conversation_id: string, func: f_call): Promise<{ approved: unknown; p_response: any; }>; invokeFunction(call: f_call): Promise<import("./types").rpcResponseType>; processFunctionCall(conversation_id: string, functions: f_call[]): Promise<void>; } //# sourceMappingURL=ttcAI.d.ts.map