MGMT-21732: Reenforce use of tool calls#201
Conversation
Sometimes the model just punts on the tool calls and asks the user to do them for some reason. This is already forbidden in the prompt so this is reenforcing it from the opposite angle of encouraging it to do the tool calls itself.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: keitwb The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
WalkthroughEdits to template.yaml adjust prompt guidance: allow learning missing details via tool calls, and remove directives about post-step success confirmation and explicit failure-handling instructions. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks (3 passed)✅ Passed checks (3 passed)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. ✨ Finishing touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@keitwb: This pull request references MGMT-21732 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.21.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@keitwb: This pull request references MGMT-21732 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.21.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
template.yaml (1)
308-309: Strengthen wording to mandate self-invoked tool calls; fix capitalization.The added guidance is good. To fully align with the PR objective (model invokes tools itself) and for consistency, tighten the language and capitalize “OpenShift”.
- * If a step requires specific information (e.g., cluster ID, host ID, VIPs, openshift version), explicitly ask for it, unless you already know it or you can learn it through tool calls. + * If a step requires specific information (e.g., cluster ID, host ID, VIPs, OpenShift version), explicitly ask for it only if it isn’t already known or retrievable via tool calls. Prefer invoking tool calls yourself rather than asking the user to perform any tooling.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
template.yaml(1 hunks)
🔇 Additional comments (1)
template.yaml (1)
311-313: AI summary inconsistency: success/failure guidance still present.The AI-generated summary says the “post-step success confirmation” and “explicit failure-handling” bullets were removed, but Lines 311–313 still include them. Confirm intent: keep these bullets (recommended), or remove them to match the summary.
|
/lgtm |
|
/retest |
|
@keitwb: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Sometimes the model just punts on the tool calls and asks the user to do them for some reason. This is already forbidden in the prompt so this is reenforcing it from the opposite angle of encouraging it to do the tool calls itself.
Summary by CodeRabbit
New Features
Documentation