@telnyx/ai-agent-lib 0.5.0-beta.0 → 0.5.0-beta.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/client-tools.d.ts +6 -0
- package/dist/index.js +431 -393
- package/dist/react/client-context.d.ts +1 -1
- package/package.json +1 -1
package/dist/client-tools.d.ts
CHANGED
|
@@ -106,6 +106,12 @@ export declare class ClientToolManager {
|
|
|
106
106
|
* reset/disconnect happened while the handler was running), the result is
|
|
107
107
|
* considered stale and is dropped — sending it would leak the old result
|
|
108
108
|
* into a freshly reconnected call/session.
|
|
109
|
+
*
|
|
110
|
+
* The result is also dropped when the currently active call is no longer the
|
|
111
|
+
* one that originated the invocation. This covers the same-WebSocket case
|
|
112
|
+
* where a conversation is hung up and a new one started before a slow handler
|
|
113
|
+
* resolves: no reset() fires (the socket stayed open), but the late output
|
|
114
|
+
* must not be sent against the new conversation's call.
|
|
109
115
|
*/
|
|
110
116
|
private sendOutput;
|
|
111
117
|
}
|