@shareai-lab/kode-sdk 1.0.0-beta.7 → 1.0.0-beta.8
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/core/agent.js +8 -1
- package/package.json +2 -2
package/dist/core/agent.js
CHANGED
|
@@ -613,9 +613,16 @@ class Agent {
|
|
|
613
613
|
results.push({
|
|
614
614
|
type: 'tool_result',
|
|
615
615
|
tool_use_id: tu.id,
|
|
616
|
-
content:
|
|
616
|
+
content: `Tool not found: ${tu.name}`,
|
|
617
617
|
is_error: true,
|
|
618
618
|
});
|
|
619
|
+
this.events.emitEvent({
|
|
620
|
+
type: 'tool_result',
|
|
621
|
+
id: tu.id,
|
|
622
|
+
name: tu.name,
|
|
623
|
+
ok: false,
|
|
624
|
+
content: `Tool not found: ${tu.name}`,
|
|
625
|
+
});
|
|
619
626
|
continue;
|
|
620
627
|
}
|
|
621
628
|
const call = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shareai-lab/kode-sdk",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.8",
|
|
4
4
|
"description": "Event-driven Agent Model Client SDK for building long-running, collaborative AI agents",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"author": "",
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@shareai-lab/kode-sdk": "^1.0.0-beta.
|
|
35
|
+
"@shareai-lab/kode-sdk": "^1.0.0-beta.8",
|
|
36
36
|
"@types/node": "^20.0.0",
|
|
37
37
|
"ts-node": "^10.9.0",
|
|
38
38
|
"typescript": "^5.3.0"
|