@inkeep/agents-run-api 0.33.0 → 0.33.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.
- package/dist/index.cjs +16 -0
- package/dist/index.js +16 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -9565,6 +9565,22 @@ var Agent = class {
|
|
|
9565
9565
|
getStreamRequestId() {
|
|
9566
9566
|
return this.streamRequestId || "";
|
|
9567
9567
|
}
|
|
9568
|
+
/**
|
|
9569
|
+
* Format tool result for storage in conversation history
|
|
9570
|
+
*/
|
|
9571
|
+
formatToolResult(toolName, args, result, toolCallId) {
|
|
9572
|
+
const input = args ? JSON.stringify(args, null, 2) : "No input";
|
|
9573
|
+
const output = typeof result === "string" ? result : JSON.stringify(result, null, 2);
|
|
9574
|
+
return `## Tool: ${toolName}
|
|
9575
|
+
|
|
9576
|
+
### \u{1F527} TOOL_CALL_ID: ${toolCallId}
|
|
9577
|
+
|
|
9578
|
+
### Input
|
|
9579
|
+
${input}
|
|
9580
|
+
|
|
9581
|
+
### Output
|
|
9582
|
+
${output}`;
|
|
9583
|
+
}
|
|
9568
9584
|
/**
|
|
9569
9585
|
* Analyze tool result structure and add helpful path hints for artifact creation
|
|
9570
9586
|
* Only adds hints when artifact components are available
|
package/dist/index.js
CHANGED
|
@@ -7890,6 +7890,22 @@ var Agent = class {
|
|
|
7890
7890
|
getStreamRequestId() {
|
|
7891
7891
|
return this.streamRequestId || "";
|
|
7892
7892
|
}
|
|
7893
|
+
/**
|
|
7894
|
+
* Format tool result for storage in conversation history
|
|
7895
|
+
*/
|
|
7896
|
+
formatToolResult(toolName, args, result, toolCallId) {
|
|
7897
|
+
const input = args ? JSON.stringify(args, null, 2) : "No input";
|
|
7898
|
+
const output = typeof result === "string" ? result : JSON.stringify(result, null, 2);
|
|
7899
|
+
return `## Tool: ${toolName}
|
|
7900
|
+
|
|
7901
|
+
### \u{1F527} TOOL_CALL_ID: ${toolCallId}
|
|
7902
|
+
|
|
7903
|
+
### Input
|
|
7904
|
+
${input}
|
|
7905
|
+
|
|
7906
|
+
### Output
|
|
7907
|
+
${output}`;
|
|
7908
|
+
}
|
|
7893
7909
|
/**
|
|
7894
7910
|
* Analyze tool result structure and add helpful path hints for artifact creation
|
|
7895
7911
|
* Only adds hints when artifact components are available
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-run-api",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"description": "Agents Run API for Inkeep Agent Framework - handles chat, agent execution, and streaming",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"traverse": "^0.6.11",
|
|
54
54
|
"ts-pattern": "^5.7.1",
|
|
55
55
|
"zod": "4.1.5",
|
|
56
|
-
"@inkeep/agents-core": "^0.33.
|
|
56
|
+
"@inkeep/agents-core": "^0.33.1"
|
|
57
57
|
},
|
|
58
58
|
"optionalDependencies": {
|
|
59
59
|
"keytar": "^7.9.0"
|