botinabox 2.3.0 → 2.3.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6107,6 +6107,7 @@ ${systemContext}` : "",
6107
6107
  };
6108
6108
  if (toolDefs.length > 0) {
6109
6109
  createParams.tools = toolDefs;
6110
+ createParams.tool_choice = i === 0 ? { type: "any" } : { type: "auto" };
6110
6111
  }
6111
6112
  const response = await config.client.messages.create(createParams);
6112
6113
  totalInput += response.usage.input_tokens;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "botinabox",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Bot in a Box — framework for building multi-agent bots",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",