Skip to content

fix(agent-core): expose goal budget schema as object#355

Closed
qkunio wants to merge 2 commits into
MoonshotAI:mainfrom
qkunio:fix-set-goal-budget-schema
Closed

fix(agent-core): expose goal budget schema as object#355
qkunio wants to merge 2 commits into
MoonshotAI:mainfrom
qkunio:fix-set-goal-budget-schema

Conversation

@qkunio
Copy link
Copy Markdown
Contributor

@qkunio qkunio commented Jun 3, 2026

Related Issue

Resolve #353

Problem

See linked issue.

What changed

Changed the goal budget tool input schema to expose provider-facing parameters as a top-level object schema while keeping the existing runtime validation for whole-number turn and token budgets. Added a focused test to prevent the tool schema from regressing to a non-object top-level shape.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 3, 2026

🦋 Changeset detected

Latest commit: c168fb7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@moonshot-ai/agent-core Patch
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@qkunio qkunio marked this pull request as ready for review June 3, 2026 02:45
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bc2aaf2421

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/agent-core/src/tools/builtin/goal/set-goal-budget.ts
@chatgpt-codex-connector
Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@qkunio
Copy link
Copy Markdown
Contributor Author

qkunio commented Jun 5, 2026

since the problem was solved in v0.10.1, i will close this pr.

@qkunio qkunio closed this Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenAI-compatible API启用 goal tools 后,遇到 provider 错误

1 participant