Add Kimi-K2 tool simulation environment#1339
Open
poofeth wants to merge 2 commits into
Open
Conversation
Author
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 592fda7. Configure here.
Author
|
Addressed both Bugbot findings in commit
Validation: |
Author
|
The two Bugbot inline comments appear to be stale against the original diff, but I rechecked them against the current branch:
Fresh validation on current HEAD: |
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.

Claims https://algora.io/PrimeIntellect-ai/bounties/de4q6RZcDpDDQPXL
Summary
kimi_k2_tool_simSingleTurnEnv for tool-call sequence simulationValidation
uv run pytest tests/test_kimi_k2_tool_sim_environment.py -quv run ruff check environments/kimi_k2_tool_sim tests/test_kimi_k2_tool_sim_environment.pyuv run ruff format --check environments/kimi_k2_tool_sim tests/test_kimi_k2_tool_sim_environment.pygit diff --checkNote
Low Risk
Low risk: adds a new, self-contained example environment plus docs/tests, with no changes to shared runtime or security-sensitive logic.
Overview
Adds a new deterministic
kimi-k2-tool-simSingleTurnEnvthat evaluates simulated tool-use by requiring JSON output with an exact tool-call sequence, argument matching, and final answer matching across four built-in scenarios.Registers the environment via
pyproject.tomlentry point, documents install/usage and scoring, links it fromenvironments/README.md, and adds targeted tests covering dataset construction, JSON extraction, reward partial credit, and error handling.Reviewed by Cursor Bugbot for commit 169f468. Bugbot is set up for automated code reviews on this repo. Configure here.