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.
- package/dist/index.js +6 -0
- 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 }];
|