@inkeep/agents-run-api 0.20.0 → 0.20.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 CHANGED
@@ -3914,12 +3914,12 @@ ${this.statusUpdateState?.config.prompt?.trim() || ""}`;
3914
3914
  case "tool_call": {
3915
3915
  activities.push(
3916
3916
  `\u{1F527} **${event.data.toolName}** (called)
3917
- \u{1F4E5} Input: ${JSON.stringify(event.data.args)}`
3917
+ \u{1F4E5} Input: ${JSON.stringify(event.data.input)}`
3918
3918
  );
3919
3919
  break;
3920
3920
  }
3921
3921
  case "tool_result": {
3922
- const resultStr = event.data.error ? `\u274C Error: ${event.data.error}` : JSON.stringify(event.data.result);
3922
+ const resultStr = event.data.error ? `\u274C Error: ${event.data.error}` : JSON.stringify(event.data.output);
3923
3923
  activities.push(
3924
3924
  `\u{1F527} **${event.data.toolName}** ${event.data.duration ? `(${event.data.duration}ms)` : ""}
3925
3925
  \u{1F4E4} Output: ${resultStr}`
@@ -7632,7 +7632,7 @@ var Agent = class {
7632
7632
  ...toolDefinition,
7633
7633
  execute: async (args, context) => {
7634
7634
  const startTime = Date.now();
7635
- const toolId = context?.toolCallId || generateToolId();
7635
+ const toolCallId = context?.toolCallId || generateToolId();
7636
7636
  const activeSpan = api.trace.getActiveSpan();
7637
7637
  if (activeSpan) {
7638
7638
  activeSpan.setAttributes({
@@ -7647,9 +7647,8 @@ var Agent = class {
7647
7647
  if (streamRequestId && !isInternalTool) {
7648
7648
  agentSessionManager.recordEvent(streamRequestId, "tool_call", this.config.id, {
7649
7649
  toolName,
7650
- args,
7651
- toolCallId: context?.toolCallId,
7652
- toolId
7650
+ input: args,
7651
+ toolCallId
7653
7652
  });
7654
7653
  }
7655
7654
  try {
@@ -7658,9 +7657,8 @@ var Agent = class {
7658
7657
  if (streamRequestId && !isInternalTool) {
7659
7658
  agentSessionManager.recordEvent(streamRequestId, "tool_result", this.config.id, {
7660
7659
  toolName,
7661
- result,
7662
- toolCallId: context?.toolCallId,
7663
- toolId,
7660
+ output: result,
7661
+ toolCallId,
7664
7662
  duration
7665
7663
  });
7666
7664
  }
@@ -7671,9 +7669,8 @@ var Agent = class {
7671
7669
  if (streamRequestId && !isInternalTool) {
7672
7670
  agentSessionManager.recordEvent(streamRequestId, "tool_result", this.config.id, {
7673
7671
  toolName,
7674
- result: null,
7675
- toolCallId: context?.toolCallId,
7676
- toolId,
7672
+ output: null,
7673
+ toolCallId,
7677
7674
  duration,
7678
7675
  error: errorMessage
7679
7676
  });
package/dist/index.js CHANGED
@@ -2981,12 +2981,12 @@ ${this.statusUpdateState?.config.prompt?.trim() || ""}`;
2981
2981
  case "tool_call": {
2982
2982
  activities.push(
2983
2983
  `\u{1F527} **${event.data.toolName}** (called)
2984
- \u{1F4E5} Input: ${JSON.stringify(event.data.args)}`
2984
+ \u{1F4E5} Input: ${JSON.stringify(event.data.input)}`
2985
2985
  );
2986
2986
  break;
2987
2987
  }
2988
2988
  case "tool_result": {
2989
- const resultStr = event.data.error ? `\u274C Error: ${event.data.error}` : JSON.stringify(event.data.result);
2989
+ const resultStr = event.data.error ? `\u274C Error: ${event.data.error}` : JSON.stringify(event.data.output);
2990
2990
  activities.push(
2991
2991
  `\u{1F527} **${event.data.toolName}** ${event.data.duration ? `(${event.data.duration}ms)` : ""}
2992
2992
  \u{1F4E4} Output: ${resultStr}`
@@ -6674,7 +6674,7 @@ var Agent = class {
6674
6674
  ...toolDefinition,
6675
6675
  execute: async (args, context) => {
6676
6676
  const startTime = Date.now();
6677
- const toolId = context?.toolCallId || generateToolId();
6677
+ const toolCallId = context?.toolCallId || generateToolId();
6678
6678
  const activeSpan = trace.getActiveSpan();
6679
6679
  if (activeSpan) {
6680
6680
  activeSpan.setAttributes({
@@ -6689,9 +6689,8 @@ var Agent = class {
6689
6689
  if (streamRequestId && !isInternalTool) {
6690
6690
  agentSessionManager.recordEvent(streamRequestId, "tool_call", this.config.id, {
6691
6691
  toolName,
6692
- args,
6693
- toolCallId: context?.toolCallId,
6694
- toolId
6692
+ input: args,
6693
+ toolCallId
6695
6694
  });
6696
6695
  }
6697
6696
  try {
@@ -6700,9 +6699,8 @@ var Agent = class {
6700
6699
  if (streamRequestId && !isInternalTool) {
6701
6700
  agentSessionManager.recordEvent(streamRequestId, "tool_result", this.config.id, {
6702
6701
  toolName,
6703
- result,
6704
- toolCallId: context?.toolCallId,
6705
- toolId,
6702
+ output: result,
6703
+ toolCallId,
6706
6704
  duration
6707
6705
  });
6708
6706
  }
@@ -6713,9 +6711,8 @@ var Agent = class {
6713
6711
  if (streamRequestId && !isInternalTool) {
6714
6712
  agentSessionManager.recordEvent(streamRequestId, "tool_result", this.config.id, {
6715
6713
  toolName,
6716
- result: null,
6717
- toolCallId: context?.toolCallId,
6718
- toolId,
6714
+ output: null,
6715
+ toolCallId,
6719
6716
  duration,
6720
6717
  error: errorMessage
6721
6718
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-run-api",
3
- "version": "0.20.0",
3
+ "version": "0.20.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",
@@ -51,7 +51,7 @@
51
51
  "traverse": "^0.6.11",
52
52
  "ts-pattern": "^5.7.1",
53
53
  "zod": "^4.1.11",
54
- "@inkeep/agents-core": "^0.20.0"
54
+ "@inkeep/agents-core": "^0.20.1"
55
55
  },
56
56
  "optionalDependencies": {
57
57
  "keytar": "^7.9.0"