@areumtecnologia/autonomouscustomerserviceagent 2.2.0 → 2.2.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@areumtecnologia/autonomouscustomerserviceagent",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "Agente autônomo de atendimento ao cliente baseado em IA com Google Gemini API. Suporta múltiplas sessões, ferramentas customizadas e retry com backoff exponencial.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "Áreum Tecnologia",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"start": "node tests/test.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@google/genai": "^2.
|
|
29
|
+
"@google/genai": "^2.6.0",
|
|
30
30
|
"uuid": "^14.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -149,8 +149,9 @@ class AutonomousCustomerServiceAgent extends EventEmitter {
|
|
|
149
149
|
clearTimeout(session.retryState.timerId);
|
|
150
150
|
session.retryState = null;
|
|
151
151
|
}
|
|
152
|
+
const sessionData = session.toJSON(); // Copia o estado antes de deletar a sessão
|
|
152
153
|
this.#sessions.delete(sessionId);
|
|
153
|
-
this.emit(AgentEvents.SESSION_CLEARED, { session:
|
|
154
|
+
this.emit(AgentEvents.SESSION_CLEARED, { session: sessionData });
|
|
154
155
|
return true;
|
|
155
156
|
}
|
|
156
157
|
|