diff --git a/src/components/Provider/RealtimeClientProvider.tsx b/src/components/Provider/RealtimeClientProvider.tsx index 0a6a8f4..7f7d8ce 100644 --- a/src/components/Provider/RealtimeClientProvider.tsx +++ b/src/components/Provider/RealtimeClientProvider.tsx @@ -122,7 +122,7 @@ export const RealtimeClientProvider = ({ allowPersonalAccessTokenInBrowser: true, suppressStationaryNoise: true, suppressNonStationaryNoise: true, - debug: false, + debug: true, }); clientRef.current = client; diff --git a/src/hooks/useRealtimeClient.ts b/src/hooks/useRealtimeClient.ts index e69de29..2200a05 100644 --- a/src/hooks/useRealtimeClient.ts +++ b/src/hooks/useRealtimeClient.ts @@ -0,0 +1,20 @@ +class MessageHandler { + canHandle(_eventType: string, _dataType: string) { + throw new Error("Subclass must implement canHandle method"); + } + + handle(_event: string) { + throw new Error("Subclass must implement handle method"); + } + + setNextHandle(){} +} + +class ToolResponseHandler extends MessageHandler{ + canHandle(eventType: string, dataType: string): void { + + } + handle(event: string): void { + + } +}