mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
refactor(cron): rename cron_expression param to cron and enhance documentation
- Rename cron_expression parameter to cron for brevity across CronCreateTool - Expand tool description with comprehensive usage guidance for one-shot and recurring tasks - Add best practices for avoiding :00/:30 minute marks to reduce API load spikes - Document 3-day auto-expiration for recurring jobs and session-only lifetime - Add additionalProperties: false to all cron tool schemas for stricter validation - Update integration tests and loop SKILL to use renamed parameter This improves the developer experience with clearer parameter names and provides users with detailed guidance on scheduling patterns and runtime behavior. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
439a1a46e2
commit
57cf2b0bf2
6 changed files with 44 additions and 29 deletions
|
|
@ -65,7 +65,7 @@ describe('cron-tools', () => {
|
|||
});
|
||||
|
||||
const result = await rig.run(
|
||||
'Call cron_create with cron_expression "*/5 * * * *", prompt "test ping", recurring true. Then call cron_list. Then delete that job using cron_delete. Then call cron_list again. How many jobs remain? Reply with just the number.',
|
||||
'Call cron_create with cron "*/5 * * * *", prompt "test ping", recurring true. Then call cron_list. Then delete that job using cron_delete. Then call cron_list again. How many jobs remain? Reply with just the number.',
|
||||
);
|
||||
|
||||
const foundCreate = await rig.waitForToolCall('cron_create');
|
||||
|
|
@ -94,7 +94,7 @@ describe('cron-tools', () => {
|
|||
});
|
||||
|
||||
const result = await rig.run(
|
||||
'Do these steps: (1) Call cron_create with cron_expression "*/5 * * * *", prompt "one-shot test", recurring false. (2) Call cron_list. Is the job marked as recurring or one-shot? Remember the answer. (3) Delete all cron jobs. Reply with just "recurring" or "one-shot".',
|
||||
'Do these steps: (1) Call cron_create with cron "*/5 * * * *", prompt "one-shot test", recurring false. (2) Call cron_list. Is the job marked as recurring or one-shot? Remember the answer. (3) Delete all cron jobs. Reply with just "recurring" or "one-shot".',
|
||||
);
|
||||
|
||||
const foundCreate = await rig.waitForToolCall('cron_create');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue