UNPKG

field-service-agent

Version:

Field Service AI Agent - NPM package for integrating AI-powered field service management into mobile apps

40 lines 1.28 kB
import { AgentResponse, AgentConfig } from './types'; type FieldServiceSDKType = any; export declare class EnhancedAgent { private sdk; private currentScreenType?; private currentRecordId?; private debugMode; private context; private chatHistory; private lastDuplicateCheckData?; private language; private voiceName?; private currentTranscribedText?; constructor(config: AgentConfig); setCurrentScreen(screenType?: 'Job' | 'Client' | 'Invoice' | 'Estimate', recordId?: string): void; setCurrentRecordId(recordId?: string): void; setLanguage(language: string): void; setVoiceName(voiceName: string): void; private refreshContext; processCommand(input: string | { audioContent: string; inputEncoding?: string; inputSampleRate?: number; }): Promise<AgentResponse>; catch(error: any): { success: boolean; message: string; audioContent: string; transcribedText: string | undefined; navigationActions: never[]; }; updateChatHistory(history: Array<{ id: string; text: string; isUser: boolean; }>): void; updateSDK(sdk: FieldServiceSDKType): void; } export {}; //# sourceMappingURL=enhancedAgent.d.ts.map