@agent-smith/agent 0.3.2 → 0.3.3
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/dist/agent.js +1 -10
- package/package.json +2 -2
package/dist/agent.js
CHANGED
|
@@ -149,16 +149,7 @@ class Agent {
|
|
|
149
149
|
}
|
|
150
150
|
if (assistant) {
|
|
151
151
|
if (tpl.tags?.think?.start) {
|
|
152
|
-
|
|
153
|
-
if (toolsCall.length > 0) {
|
|
154
|
-
if (tpl?.tags?.toolCall?.start) {
|
|
155
|
-
t = res.text.split(tpl.tags.toolCall.start)[0].trim();
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
console.warn("Model called tools but not tool call tags found in template");
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
const { think, finalAnswer } = splitThinking(t, tpl.tags.think.start, tpl.tags.think.end);
|
|
152
|
+
const { think, finalAnswer } = splitThinking(assistant, tpl.tags.think.start, tpl.tags.think.end);
|
|
162
153
|
if (think.length > 0) {
|
|
163
154
|
if (options?.onThink) {
|
|
164
155
|
options.onThink(think);
|
package/package.json
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/synw/agent-smith.git"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.3.
|
|
8
|
+
"version": "0.3.3",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"buildrl": "rm -rf dist/* && rollup -c",
|
|
11
11
|
"build": "rm -rf dist/* && tsc"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@locallm/api": "^0.7.3",
|
|
15
|
-
"modprompt": "^0.14.
|
|
15
|
+
"modprompt": "^0.14.2",
|
|
16
16
|
"restmix": "^0.6.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|