@xuda.io/ai_module 1.1.5442 → 1.1.5444
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 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4350,7 +4350,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4350
4350
|
};
|
|
4351
4351
|
const get_agents = async function () {
|
|
4352
4352
|
if (reference_type === 'ai_agents') {
|
|
4353
|
-
local_ai_agents[reference_id];
|
|
4353
|
+
local_ai_agents = [reference_id];
|
|
4354
4354
|
} else {
|
|
4355
4355
|
if (typeof local_ai_agents === 'undefined') {
|
|
4356
4356
|
// no agents
|
|
@@ -5345,7 +5345,7 @@ const get_plugin_tool = async function (app_id, uid, plugin_name, method, prop_d
|
|
|
5345
5345
|
}
|
|
5346
5346
|
const _method = methods[method];
|
|
5347
5347
|
const userName = await get_user_name(uid);
|
|
5348
|
-
|
|
5348
|
+
debugger;
|
|
5349
5349
|
const fields = await get_fields_data(_method.fields, prop_data);
|
|
5350
5350
|
const params = fields;
|
|
5351
5351
|
const env = { couch, app_id, uid, userName, agent_info };
|
|
@@ -5395,7 +5395,6 @@ const get_plugin_tool = async function (app_id, uid, plugin_name, method, prop_d
|
|
|
5395
5395
|
description: _method.tooltip,
|
|
5396
5396
|
parameters: z.object(schema),
|
|
5397
5397
|
async execute(e, RunContext) {
|
|
5398
|
-
debugger;
|
|
5399
5398
|
const params = e || {};
|
|
5400
5399
|
const { req, resolve, reject, env } = RunContext.context; //setup_doc
|
|
5401
5400
|
try {
|