fix(cron): clarify schedule is required for create in tool schema#32448
Closed
ygd58 wants to merge 2 commits into
Closed
fix(cron): clarify schedule is required for create in tool schema#32448ygd58 wants to merge 2 commits into
ygd58 wants to merge 2 commits into
Conversation
Grok models (and other LLMs) sometimes omit the schedule parameter when calling the cronjob tool with action=create because the schema only listed 'action' in required[] and the schedule description did not explicitly state it was mandatory (issue NousResearch#32427). Fix: update schema descriptions to clearly state schedule is REQUIRED for action=create, making this explicit for models that rely on description text for parameter compliance. Fixes NousResearch#32427
…eate Previous commit updated descriptions but left required[] with only 'action'. Add JSON Schema if/then so schema-strict models also see schedule and prompt as required when action=create. Two-layer fix: 1. Description text (for description-driven models like Grok) 2. if/then conditional schema (for schema-strict validators)
Contributor
|
Merged via #32804 — your description-text commit was cherry-picked onto current main with authorship preserved in git log (commit 5101326). Dropped the |
This was referenced May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Grok models omit schedule when calling cronjob action=create (issue #32427).
Two-layer fix
Fixes #32427