@polka-codes/core 0.9.77 → 0.9.78

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/index.js +8 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1823,6 +1823,14 @@ var agentWorkflow = async (input, { step, tools, logger }) => {
1823
1823
  value: `Tool '${toolCall.toolName}' not found.`
1824
1824
  }
1825
1825
  });
1826
+ toolResults.push({
1827
+ toolCallId: toolCall.toolCallId,
1828
+ toolName: toolCall.toolName,
1829
+ output: {
1830
+ type: "error-text",
1831
+ value: `Error: Tool '${toolCall.toolName}' not found.`
1832
+ }
1833
+ });
1826
1834
  continue;
1827
1835
  }
1828
1836
  await event(`event-tool-use-${toolCall.toolName}-${toolCall.toolCallId}`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/core",
3
- "version": "0.9.77",
3
+ "version": "0.9.78",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",