diff --git a/server/utils/agents/aibitat/providers/helpers/untooled.js b/server/utils/agents/aibitat/providers/helpers/untooled.js index 11fbfec8b..774bb6915 100644 --- a/server/utils/agents/aibitat/providers/helpers/untooled.js +++ b/server/utils/agents/aibitat/providers/helpers/untooled.js @@ -33,7 +33,10 @@ ${JSON.stringify(def.parameters.properties, null, 4)}\n`; if (Array.isArray(def.examples)) { def.examples.forEach(({ prompt, call }) => { - shotExample += `Query: "${prompt}"\nJSON: ${call}\n`; + shotExample += `Query: "${prompt}"\nJSON: ${JSON.stringify({ + name: def.name, + arguments: safeJsonParse(call, {}), + })}\n`; }); } output += `${shotExample}-----------\n`;