@agent-smith/task 0.3.0 → 0.3.1

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/dist/task.js +4 -1
  2. package/package.json +3 -7
package/dist/task.js CHANGED
@@ -125,7 +125,10 @@ class Task {
125
125
  // cut debug here. TODO: debug log levels
126
126
  options.debug = false;
127
127
  }
128
- const isRoutingAgent = this.def?.description?.includes("routing agent") ?? false;
128
+ let isRoutingAgent = false;
129
+ if (this.def?.description) {
130
+ isRoutingAgent = this.def.description.includes("routing agent");
131
+ }
129
132
  if (isRoutingAgent) {
130
133
  options.isToolsRouter = true;
131
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-smith/task",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A toolkit to create human friendly agents: the language model tasks module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,26 +14,22 @@
14
14
  "docs": "typedoc --entryPointStrategy expand"
15
15
  },
16
16
  "dependencies": {
17
- "@agent-smith/agent": "^0.3.0",
17
+ "@agent-smith/agent": "^0.3.1",
18
18
  "@agent-smith/tfm": "^0.2.0",
19
19
  "modprompt": "^0.14.0",
20
20
  "yaml": "^2.8.2"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@locallm/api": "^0.7.3",
24
- "openai": "6.22.0",
24
+ "openai": "6.24.0",
25
25
  "@locallm/types": "^0.7.0",
26
26
  "@rollup/plugin-node-resolve": "^16.0.3",
27
27
  "@rollup/plugin-terser": "^0.4.4",
28
28
  "@rollup/plugin-typescript": "^12.3.0",
29
29
  "@types/node": "^25.3.0",
30
- "markdown-it-replace-link": "^1.2.2",
31
30
  "restmix": "^0.6.1",
32
31
  "rollup": "^4.59.0",
33
32
  "tslib": "^2.8.1",
34
- "typedoc": "^0.28.17",
35
- "typedoc-plugin-markdown": "^4.10.0",
36
- "typedoc-plugin-rename-defaults": "^0.7.3",
37
33
  "typescript": "^5.9.3"
38
34
  },
39
35
  "files": [