@vanira/sdk 0.0.5 → 0.0.7
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/core/WebRTCClient.d.ts +8 -0
- package/dist/types.d.ts +0 -4
- package/dist/vanira-sdk.es.js +28 -78
- package/dist/vanira-sdk.js +25 -75
- package/dist/vanira-sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -46,6 +46,14 @@ export declare class WebRTCClient {
|
|
|
46
46
|
* Use this to unblock a 'blocking' execution mode tool.
|
|
47
47
|
*/
|
|
48
48
|
sendToolResult(callId: string, result: any): void;
|
|
49
|
+
/**
|
|
50
|
+
* Send an acknowledgement that the client received a tool call and rendered it.
|
|
51
|
+
* This MUST be sent immediately upon receiving a 'client_tool_call' event.
|
|
52
|
+
* The SDK now sends this automatically, but this method is exposed for manual use.
|
|
53
|
+
* If the ack is not received within 2.3s, the AI will ask "Did something pop up?"
|
|
54
|
+
* Once acked, the server waits up to 10s for the client_tool_result.
|
|
55
|
+
*/
|
|
56
|
+
sendToolAck(toolCallId: string): void;
|
|
49
57
|
/**
|
|
50
58
|
* Silently update the AI's context with what the user is currently viewing.
|
|
51
59
|
* Does NOT interrupt the AI's current speech.
|
package/dist/types.d.ts
CHANGED
|
@@ -15,10 +15,6 @@ export interface WidgetConfig {
|
|
|
15
15
|
mode: WidgetMode;
|
|
16
16
|
icon?: string;
|
|
17
17
|
gradient?: string;
|
|
18
|
-
/** Primary brand color stored in app_widget.primary_color */
|
|
19
|
-
primary_color?: string;
|
|
20
|
-
/** Secondary accent color stored in app_widget.secondary_color */
|
|
21
|
-
secondary_color?: string;
|
|
22
18
|
agent?: Agent;
|
|
23
19
|
client?: {
|
|
24
20
|
base_prospect_group_id?: string;
|