@xuda.io/ai_module 1.1.5297 → 1.1.5299
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 +4 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4656,7 +4656,6 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4656
4656
|
break;
|
|
4657
4657
|
}
|
|
4658
4658
|
case 'plugin': {
|
|
4659
|
-
debugger;
|
|
4660
4659
|
if (reference_type !== 'ai_agents' && !prompt_suggestion_activated) {
|
|
4661
4660
|
eligible_agent = false;
|
|
4662
4661
|
break;
|
|
@@ -4665,7 +4664,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4665
4664
|
if (!val.plugin_id) {
|
|
4666
4665
|
throw new Error('undefined plugin_id');
|
|
4667
4666
|
}
|
|
4668
|
-
if (!val.
|
|
4667
|
+
if (!val.plugin_method) {
|
|
4669
4668
|
throw new Error('undefined method');
|
|
4670
4669
|
}
|
|
4671
4670
|
// const tool = await get_plugin_tool(app_id, uid, val.plugin_id, val.method, {});
|
|
@@ -4673,7 +4672,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4673
4672
|
ai_agent_doc?.reference_doc?.studio_meta?.shared_from_app_id || ai_agent_doc?.reference_doc?.studio_meta?.installed_from_app_id || account_profile_info.app_id,
|
|
4674
4673
|
ai_agent_doc?.reference_doc?.studio_meta?.shared_from_uid || ai_agent_doc?.reference_doc?.studio_meta?.installed_from_uid || uid,
|
|
4675
4674
|
val.plugin_id,
|
|
4676
|
-
val.
|
|
4675
|
+
val.plugin_method,
|
|
4677
4676
|
{},
|
|
4678
4677
|
);
|
|
4679
4678
|
|
|
@@ -4811,7 +4810,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4811
4810
|
///////////
|
|
4812
4811
|
|
|
4813
4812
|
if (reference_type === 'ai_agents' || prompt_suggestion_activated) {
|
|
4814
|
-
_agent =
|
|
4813
|
+
_agent = local_ai_agents[0];
|
|
4815
4814
|
|
|
4816
4815
|
set_ts_to_agent();
|
|
4817
4816
|
} else {
|
|
@@ -4822,7 +4821,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4822
4821
|
// inputGuardrails: [contactGuardrail],
|
|
4823
4822
|
// outputGuardrails: [contactGuardrail],
|
|
4824
4823
|
model,
|
|
4825
|
-
handoffs:
|
|
4824
|
+
handoffs: local_ai_agents, // this lets triageAgent forward to other agents
|
|
4826
4825
|
});
|
|
4827
4826
|
}
|
|
4828
4827
|
|