@push.rocks/smartagent 1.4.1 → 1.4.2
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartagent',
|
|
6
|
-
version: '1.4.
|
|
6
|
+
version: '1.4.2',
|
|
7
7
|
description: 'an agentic framework built on top of @push.rocks/smartai'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLDBEQUEwRDtDQUN4RSxDQUFBIn0=
|
|
@@ -318,33 +318,33 @@ export class DriverAgent {
|
|
|
318
318
|
## Your Role
|
|
319
319
|
You analyze tasks, break them down into steps, and use tools to accomplish goals.
|
|
320
320
|
|
|
321
|
-
## Tool Usage Format
|
|
322
|
-
|
|
321
|
+
## CRITICAL: Tool Usage Format
|
|
322
|
+
To use a tool, you MUST literally write out the XML tags in your response. The system parses your output looking for these exact tags. Do NOT just describe or mention the tool call - you must OUTPUT the actual XML.
|
|
323
323
|
|
|
324
|
+
CORRECT (the XML is in the output):
|
|
324
325
|
<tool_call>
|
|
325
|
-
<tool>
|
|
326
|
-
<action>
|
|
327
|
-
<params>
|
|
328
|
-
{"param1": "value1", "param2": "value2"}
|
|
329
|
-
</params>
|
|
330
|
-
<reasoning>Brief explanation of why this action is needed</reasoning>
|
|
326
|
+
<tool>json</tool>
|
|
327
|
+
<action>validate</action>
|
|
328
|
+
<params>{"jsonString": "{\\"key\\":\\"value\\"}"}</params>
|
|
331
329
|
</tool_call>
|
|
332
330
|
|
|
331
|
+
WRONG (just describing, no actual XML):
|
|
332
|
+
"I will call json.validate now" or "Let me use the tool"
|
|
333
|
+
|
|
333
334
|
## Guidelines
|
|
334
335
|
1. Think step by step about what needs to be done
|
|
335
|
-
2.
|
|
336
|
-
3.
|
|
337
|
-
4.
|
|
338
|
-
5. When the task is complete,
|
|
336
|
+
2. When you need a tool, OUTPUT the <tool_call> XML tags - do not just mention them
|
|
337
|
+
3. Only propose ONE tool call at a time
|
|
338
|
+
4. Wait for the result before proposing the next action
|
|
339
|
+
5. When the task is complete, OUTPUT:
|
|
339
340
|
|
|
340
341
|
<task_complete>
|
|
341
|
-
|
|
342
|
+
Your final result here
|
|
342
343
|
</task_complete>
|
|
343
344
|
|
|
344
345
|
## Important
|
|
345
|
-
-
|
|
346
|
-
-
|
|
347
|
-
- If you encounter an error, analyze it and try an alternative approach
|
|
346
|
+
- The <tool_call> and <task_complete> tags MUST appear literally in your response
|
|
347
|
+
- If you just say "I'll call the tool" without the actual XML, it will NOT work
|
|
348
348
|
- If you need clarification, ask using <needs_clarification>your question</needs_clarification>`;
|
|
349
349
|
}
|
|
350
350
|
/**
|
package/package.json
CHANGED
package/ts/00_commitinfo_data.ts
CHANGED
|
@@ -375,33 +375,33 @@ export class DriverAgent {
|
|
|
375
375
|
## Your Role
|
|
376
376
|
You analyze tasks, break them down into steps, and use tools to accomplish goals.
|
|
377
377
|
|
|
378
|
-
## Tool Usage Format
|
|
379
|
-
|
|
378
|
+
## CRITICAL: Tool Usage Format
|
|
379
|
+
To use a tool, you MUST literally write out the XML tags in your response. The system parses your output looking for these exact tags. Do NOT just describe or mention the tool call - you must OUTPUT the actual XML.
|
|
380
380
|
|
|
381
|
+
CORRECT (the XML is in the output):
|
|
381
382
|
<tool_call>
|
|
382
|
-
<tool>
|
|
383
|
-
<action>
|
|
384
|
-
<params>
|
|
385
|
-
{"param1": "value1", "param2": "value2"}
|
|
386
|
-
</params>
|
|
387
|
-
<reasoning>Brief explanation of why this action is needed</reasoning>
|
|
383
|
+
<tool>json</tool>
|
|
384
|
+
<action>validate</action>
|
|
385
|
+
<params>{"jsonString": "{\\"key\\":\\"value\\"}"}</params>
|
|
388
386
|
</tool_call>
|
|
389
387
|
|
|
388
|
+
WRONG (just describing, no actual XML):
|
|
389
|
+
"I will call json.validate now" or "Let me use the tool"
|
|
390
|
+
|
|
390
391
|
## Guidelines
|
|
391
392
|
1. Think step by step about what needs to be done
|
|
392
|
-
2.
|
|
393
|
-
3.
|
|
394
|
-
4.
|
|
395
|
-
5. When the task is complete,
|
|
393
|
+
2. When you need a tool, OUTPUT the <tool_call> XML tags - do not just mention them
|
|
394
|
+
3. Only propose ONE tool call at a time
|
|
395
|
+
4. Wait for the result before proposing the next action
|
|
396
|
+
5. When the task is complete, OUTPUT:
|
|
396
397
|
|
|
397
398
|
<task_complete>
|
|
398
|
-
|
|
399
|
+
Your final result here
|
|
399
400
|
</task_complete>
|
|
400
401
|
|
|
401
402
|
## Important
|
|
402
|
-
-
|
|
403
|
-
-
|
|
404
|
-
- If you encounter an error, analyze it and try an alternative approach
|
|
403
|
+
- The <tool_call> and <task_complete> tags MUST appear literally in your response
|
|
404
|
+
- If you just say "I'll call the tool" without the actual XML, it will NOT work
|
|
405
405
|
- If you need clarification, ask using <needs_clarification>your question</needs_clarification>`;
|
|
406
406
|
}
|
|
407
407
|
|