llmonitor
Version:
llmonitor is an open-source monitoring and analytics platform for AI apps.
17 lines (14 loc) • 678 B
TypeScript
import { cJSON } from './types.js';
import llmonitor from './browser.js';
import { T as Thread } from './llmonitor-90ca24a9.js';
declare function useChatMonitor(): {
restart: () => Thread;
restartThread: () => Thread;
resumeThread: (id: string) => Thread;
trackUserMessage: (text: string, props?: cJSON, customId?: string) => string;
trackBotMessage: (replyToId: string, text: string, props?: cJSON) => void;
trackFeedback: (runId: string, feedback: cJSON) => void;
identify: (userId: string, userProps?: cJSON) => void;
};
declare const useMonitorVercelAI: (props: any) => any;
export { llmonitor as default, useChatMonitor, useMonitorVercelAI };