@bytexbyte/nxtlinq-ai-agent-ui-react-development 0.1.8 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"ChatBotContext.d.ts","sourceRoot":"","sources":["../../src/context/ChatBotContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyB/B,OAAO,EAEL,kBAAkB,EAClB,YAAY,EAEb,MAAM,uBAAuB,CAAC;AAM/B,eAAO,MAAM,UAAU,0BAMtB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA4qGlD,CAAC"}
1
+ {"version":3,"file":"ChatBotContext.d.ts","sourceRoot":"","sources":["../../src/context/ChatBotContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyB/B,OAAO,EAEL,kBAAkB,EAClB,YAAY,EAEb,MAAM,uBAAuB,CAAC;AAM/B,eAAO,MAAM,UAAU,0BAMtB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA+qGlD,CAAC"}
@@ -2245,6 +2245,9 @@ piiDisplayMode = 'redacted', }) => {
2245
2245
  getMessages: () => messagesRef.current,
2246
2246
  setMessages,
2247
2247
  onError,
2248
+ onToolCall: onToolUse
2249
+ ? (event) => { void onToolUse({ name: event.name, input: event.args }); }
2250
+ : undefined,
2248
2251
  stopRecording,
2249
2252
  stopTextToSpeech: stopTextToSpeechAndReset,
2250
2253
  voiceTransport: 'ws-realtime',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/nxtlinq-ai-agent-ui-react-development",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "description": "Official React Web UI for nxtlinq AI Agent — drop-in chat widget",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -38,8 +38,8 @@
38
38
  "react-dom": ">=18.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@bytexbyte/nxtlinq-ai-agent-core-development": "0.4.2",
42
- "@bytexbyte/nxtlinq-ai-agent-web-development": "0.1.8",
41
+ "@bytexbyte/nxtlinq-ai-agent-core-development": "0.4.4",
42
+ "@bytexbyte/nxtlinq-ai-agent-web-development": "0.2.0",
43
43
  "@emotion/react": "^11.14.0",
44
44
  "@emotion/styled": "^11.14.1",
45
45
  "@mui/icons-material": "^7.2.0",
@@ -2497,6 +2497,9 @@ export const ChatBotProvider: React.FC<ChatBotProps> = ({
2497
2497
  getMessages: () => messagesRef.current,
2498
2498
  setMessages,
2499
2499
  onError,
2500
+ onToolCall: onToolUse
2501
+ ? (event) => { void onToolUse({ name: event.name, input: event.args }); }
2502
+ : undefined,
2500
2503
  stopRecording,
2501
2504
  stopTextToSpeech: stopTextToSpeechAndReset,
2502
2505
  voiceTransport: 'ws-realtime',