@waniwani/sdk 0.23.0 → 0.24.1
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.
- package/dist/chat/embed.js +73 -73
- package/dist/chat/embed.js.map +1 -1
- package/dist/chat/index.d.ts +6 -0
- package/dist/chat/index.js +12 -12
- package/dist/chat/index.js.map +1 -1
- package/dist/mcp/index.d.ts +16 -7
- package/dist/mcp/index.js +5 -5
- package/dist/mcp/index.js.map +1 -1
- package/package.json +1 -1
package/dist/chat/index.d.ts
CHANGED
|
@@ -670,6 +670,12 @@ interface ChatBaseProps {
|
|
|
670
670
|
onMessageSent?: (message: string) => void;
|
|
671
671
|
/** Callback fired when a response is received */
|
|
672
672
|
onResponseReceived?: () => void;
|
|
673
|
+
/** @experimental Answers tool calls the server left without a result: the return value goes back to the AI as the result, a throw as an error result, and the chat then carries on. Ignored with a custom `transport`. */
|
|
674
|
+
onToolCall?: (call: {
|
|
675
|
+
toolCallId: string;
|
|
676
|
+
toolName: string;
|
|
677
|
+
input: unknown;
|
|
678
|
+
}) => unknown;
|
|
673
679
|
/**
|
|
674
680
|
* Suggestion pills. The row obeys a fixed hierarchy — flow > followup >
|
|
675
681
|
* page > channel — and every origin is always active.
|