@xuda.io/ai_module 1.1.5299 → 1.1.5300
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/index.mjs +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4810,7 +4810,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4810
4810
|
///////////
|
|
4811
4811
|
|
|
4812
4812
|
if (reference_type === 'ai_agents' || prompt_suggestion_activated) {
|
|
4813
|
-
_agent =
|
|
4813
|
+
_agent = agents[0];
|
|
4814
4814
|
|
|
4815
4815
|
set_ts_to_agent();
|
|
4816
4816
|
} else {
|
|
@@ -4821,7 +4821,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4821
4821
|
// inputGuardrails: [contactGuardrail],
|
|
4822
4822
|
// outputGuardrails: [contactGuardrail],
|
|
4823
4823
|
model,
|
|
4824
|
-
handoffs:
|
|
4824
|
+
handoffs: agents, // this lets triageAgent forward to other agents
|
|
4825
4825
|
});
|
|
4826
4826
|
}
|
|
4827
4827
|
|