@aigne/example-workflow-code-execution 1.12.7 → 1.12.10
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/package.json +6 -6
- package/usages.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/example-workflow-code-execution",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.10",
|
|
4
4
|
"description": "A demonstration of using AIGNE Framework to build a code-execution workflow",
|
|
5
5
|
"author": "Arcblock <blocklet@arcblock.io> https://github.com/blocklet",
|
|
6
6
|
"homepage": "https://github.com/AIGNE-io/aigne-framework/tree/main/examples/workflow-code-execution",
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"zod": "^3.24.4",
|
|
20
|
-
"@aigne/agent-library": "^1.
|
|
21
|
-
"@aigne/
|
|
22
|
-
"@aigne/
|
|
23
|
-
"@aigne/openai": "^0.3.
|
|
20
|
+
"@aigne/agent-library": "^1.14.0",
|
|
21
|
+
"@aigne/cli": "^1.12.0",
|
|
22
|
+
"@aigne/core": "^1.21.0",
|
|
23
|
+
"@aigne/openai": "^0.3.3"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/bun": "^1.2.9",
|
|
27
|
-
"@aigne/test-utils": "^0.4.
|
|
27
|
+
"@aigne/test-utils": "^0.4.3"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"start": "bun run index.ts",
|
package/usages.ts
CHANGED
|
@@ -31,13 +31,14 @@ You are a proficient coder. You write code to solve problems.
|
|
|
31
31
|
Work with the sandbox to execute your code.
|
|
32
32
|
`,
|
|
33
33
|
skills: [sandbox],
|
|
34
|
+
inputKey: "message",
|
|
34
35
|
});
|
|
35
36
|
|
|
36
37
|
const aigne = new AIGNE({ model });
|
|
37
38
|
|
|
38
|
-
const result = await aigne.invoke(coder, "10! = ?");
|
|
39
|
+
const result = await aigne.invoke(coder, { message: "10! = ?" });
|
|
39
40
|
console.log(result);
|
|
40
41
|
// Output:
|
|
41
42
|
// {
|
|
42
|
-
//
|
|
43
|
+
// message: "The value of \\(10!\\) (10 factorial) is 3,628,800.",
|
|
43
44
|
// }
|