@xuda.io/ai_module 1.1.5235 → 1.1.5236
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 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -11069,6 +11069,10 @@ export const get_chat_suggestions = async function (req) {
|
|
|
11069
11069
|
ai_agent_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, ai_agent_doc.studio_meta.share_item_id);
|
|
11070
11070
|
ai_agent_doc.reference_doc = reference_doc;
|
|
11071
11071
|
}
|
|
11072
|
+
let skip = false;
|
|
11073
|
+
for (const [key, val] of Object.entries(ai_agent_doc?.agentConfig?.agent_tools || [])) {
|
|
11074
|
+
}
|
|
11075
|
+
|
|
11072
11076
|
list.push({ agent_id, agent_name: ai_agent_doc.properties.menuName, agent_category: ai_agent_doc.studio_meta.agent_category, agent_industry: ai_agent_doc.studio_meta.agent_industry, agent_instructions: ai_agent_doc?.agentConfig?.agent_instructions });
|
|
11073
11077
|
} catch (err) {
|
|
11074
11078
|
throw new Error(err.message);
|