fix(cron): schedule.delay.unit 补上 type:"string",修复 moonshot schema 校验失败 - #438
Open
CharlesChor wants to merge 1 commit into
Open
fix(cron): schedule.delay.unit 补上 type:"string",修复 moonshot schema 校验失败#438CharlesChor wants to merge 1 commit into
CharlesChor wants to merge 1 commit into
Conversation
CRON_SCHEDULE_SCHEMA 的 delay 分支中 unit 字段仅有 enum 缺少 type, 导致 moonshot 在加载 cron_create 工具时校验失败: tools.function.parameters is not a valid moonshot flavored json schema → At path 'properties.schedule.anyOf.properties.unit': type is not defined 从而使所有依赖该工具的 agent 对话返回「服务暂时不可用」。
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.
问题
CRON_SCHEDULE_SCHEMA的delay分支中unit字段仅有enum缺少type,导致 moonshot 在加载cron_create工具时校验失败:结果所有依赖该工具的 agent 对话返回「服务暂时不可用」。
修复
给
unit补上type: "string":验证
修复后模型成功接受工具定义,cron 定时能力正常工作("10分钟后提醒开会" 可执行)。
🤖 Generated with Claude Code