@xuda.io/ai_module 1.1.5314 → 1.1.5316
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4674,6 +4674,8 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4674
4674
|
val.plugin_id,
|
|
4675
4675
|
val.plugin_method,
|
|
4676
4676
|
{},
|
|
4677
|
+
undefined,
|
|
4678
|
+
undefined,
|
|
4677
4679
|
{ ai_agent_doc },
|
|
4678
4680
|
);
|
|
4679
4681
|
|
|
@@ -5322,7 +5324,7 @@ const get_plugin_tool = async function (app_id, uid, plugin_name, method, prop_d
|
|
|
5322
5324
|
parameters: z.object(schema),
|
|
5323
5325
|
async execute(e, RunContext) {
|
|
5324
5326
|
const params = e || {};
|
|
5325
|
-
const { req,
|
|
5327
|
+
const { req, resolve, reject, env } = RunContext.context; //setup_doc
|
|
5326
5328
|
try {
|
|
5327
5329
|
let ret_exec = await execute_server_script(req, app_id, server, method, params, setup_doc);
|
|
5328
5330
|
console.log(ret_exec);
|