convo-ai-sdk 1.0.0 → 1.0.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/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare class ChatClient {
|
|
|
15
15
|
connect(sessionToken?: string): Promise<void>;
|
|
16
16
|
sendToolResult(toolCallId: string, toolCallName: any, result: any): Promise<void>;
|
|
17
17
|
sendMessage(text: string): Promise<void>;
|
|
18
|
+
toolCall(tool_call: any): Promise<void>;
|
|
18
19
|
sendStreamMessage(message: ChatMessage): Promise<void>;
|
|
19
20
|
disconnect(): void;
|
|
20
21
|
resetChat(): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -196,6 +196,9 @@ export class ChatClient {
|
|
|
196
196
|
this._emit('message', userMessage);
|
|
197
197
|
await this.sendStreamMessage(userMessage);
|
|
198
198
|
}
|
|
199
|
+
async toolCall(tool_call) {
|
|
200
|
+
this._emit('toolCall', tool_call);
|
|
201
|
+
}
|
|
199
202
|
async sendStreamMessage(message) {
|
|
200
203
|
if (this.status !== 'connected') {
|
|
201
204
|
console.error('Cannot send stream message, not connected.');
|