@areumtecnologia/autonomouscustomerserviceagent 2.0.2 → 2.0.4
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.0.
|
|
3
|
+
"version": "2.0.4",
|
|
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,6 @@
|
|
|
26
26
|
"start": "node tests/test.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@areumtecnologia/autonomouscustomerserviceagent": "github:areumtecnologia/AutonomousCustomerServiceAgent",
|
|
30
29
|
"@google/genai": "^2.6.0"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
package/src/AgentManager.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const { AutonomousCustomerServiceAgent } = require('./AutonomousCustomerServiceAgent');
|
|
4
|
+
|
|
5
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
6
|
+
// AgentManager — armazena e gerencia múltiplas instâncias de agentes
|
|
7
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
8
|
class AgentManager {
|
|
3
9
|
constructor() {
|
|
4
10
|
this.agents = new Map();
|
|
@@ -774,7 +774,7 @@ class AutonomousCustomerServiceAgent extends EventEmitter {
|
|
|
774
774
|
},
|
|
775
775
|
reasoning: {
|
|
776
776
|
type: Type.STRING,
|
|
777
|
-
description: `The model's reasoning in the language ${this.#agent.
|
|
777
|
+
description: `The model's reasoning in the language ${this.#agent.reasoningLanguage}. It should be clear and detailed, explaining the reasons behind its response, based on interactions with the user. This field is crucial for auditing and continuous improvement of the agent.`,
|
|
778
778
|
},
|
|
779
779
|
response: {
|
|
780
780
|
type: Type.STRING,
|
|
@@ -795,6 +795,7 @@ class AutonomousCustomerServiceAgent extends EventEmitter {
|
|
|
795
795
|
<identity>
|
|
796
796
|
- Name: ${this.#agent.name}
|
|
797
797
|
- Creator: Áreum Tecnologia (Software and AI Development Team)
|
|
798
|
+
- Reasoning Language: ${this.#agent.reasoningLanguage}
|
|
798
799
|
</identity>
|
|
799
800
|
|
|
800
801
|
${this.#agent.company.name ? `<work_context>
|