botinabox 2.0.0 → 2.0.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 +6 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6092,10 +6092,16 @@ async function registerExecutionEngine(opts) {
6092
6092
  const runId = await runs.startRun(assigneeId, taskId, "api");
6093
6093
  const prompt = task.description ?? task.title ?? "";
6094
6094
  try {
6095
+ const toolListing = toolDefs.length > 0 ? `
6096
+ ## Available Tools
6097
+ ${toolDefs.map((t) => `- **${t.name}**: ${t.description}`).join("\n")}
6098
+
6099
+ Use your tools to take action. Do NOT describe what you would do \u2014 call the tool.` : "";
6095
6100
  const systemPrompt = [
6096
6101
  `You are ${agent.name}, an AI agent with role: ${agent.role}.`,
6097
6102
  systemContext ? `
6098
6103
  ${systemContext}` : "",
6104
+ toolListing,
6099
6105
  config.systemPromptSuffix ?? ""
6100
6106
  ].filter(Boolean).join("\n");
6101
6107
  const messages = [{ role: "user", content: prompt }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "botinabox",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Bot in a Box — framework for building multi-agent bots",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",