@saltcorn/agents 0.4.8 → 0.4.9

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -121,11 +121,11 @@ module.exports = {
121
121
  {
122
122
  user: opts?.user,
123
123
  body: {},
124
- disable_markdown: opts?.disable_markdown_render
124
+ disable_markdown: opts?.disable_markdown_render,
125
125
  },
126
126
  null
127
127
  );
128
- return result.json.response;
128
+ return { text: result.json.response };
129
129
  },
130
130
  isAsync: true,
131
131
  description: "Run an agent on a prompt",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/agents",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "AI agents for Saltcorn",
5
5
  "main": "index.js",
6
6
  "dependencies": {