@xuda.io/ai_module 1.1.5299 → 1.1.5301
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 +3 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4700,6 +4700,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4700
4700
|
tool_resources,
|
|
4701
4701
|
modelSettings,
|
|
4702
4702
|
});
|
|
4703
|
+
debugger;
|
|
4703
4704
|
if (eligible_agent) {
|
|
4704
4705
|
// allow read only agents if not ai_agent scope
|
|
4705
4706
|
if (!prompt_suggestion_activated) {
|
|
@@ -4810,7 +4811,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4810
4811
|
///////////
|
|
4811
4812
|
|
|
4812
4813
|
if (reference_type === 'ai_agents' || prompt_suggestion_activated) {
|
|
4813
|
-
_agent =
|
|
4814
|
+
_agent = agents[0];
|
|
4814
4815
|
|
|
4815
4816
|
set_ts_to_agent();
|
|
4816
4817
|
} else {
|
|
@@ -4821,7 +4822,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4821
4822
|
// inputGuardrails: [contactGuardrail],
|
|
4822
4823
|
// outputGuardrails: [contactGuardrail],
|
|
4823
4824
|
model,
|
|
4824
|
-
handoffs:
|
|
4825
|
+
handoffs: agents, // this lets triageAgent forward to other agents
|
|
4825
4826
|
});
|
|
4826
4827
|
}
|
|
4827
4828
|
|