ttc-ai-client
Version:
TypeScript client sdk for TTC AI services with decorators and schema validation.
46 lines • 1.27 kB
TypeScript
import { ZodSchema } from "zod";
export type f_call = {
function: string;
arguments: Record<string, any>;
};
export type f_schema = {
name: string;
description: string;
permission?: boolean;
input_schema: string;
output_schema: string;
};
export type f_response = {
function: string;
response: any;
};
export type statusType = 'success' | 'error';
export type ClassType<T = any> = new (...args: any[]) => T;
export type rpcResponseType = {
status: statusType;
data?: any;
};
export type RPCMethodInfo = {
name: string;
description?: string;
permission?: boolean;
input_schema?: string;
output_schema?: string;
};
export type RegistryEntry = {
param_index: number;
params: Record<string, any>;
inputSchema?: ZodSchema<any>;
outputSchema?: ZodSchema<any>;
auth?: boolean;
doc?: string;
validate?: boolean;
};
export type ttc_event = 'message' | 'function_call' | 'permission';
export type callbackType = (method: string, params?: any) => Promise<any>;
export type mediaCallbackType = (method: string, params?: any, file?: File) => Promise<any>;
export type rpcResponseTypeGeneric<T = any> = {
status: 'success' | 'error';
data?: T;
};
//# sourceMappingURL=types.d.ts.map