-
Notifications
You must be signed in to change notification settings - Fork 485
Add cursor rules for test_llm from nvidia-nat-test package
#774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cursor rules for test_llm from nvidia-nat-test package
#774
Conversation
Signed-off-by: Daniel Wang <daniewang@nvidia.com>
WalkthroughAdds a new rule file Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Workflow
participant NATTestLLM as nat_test_llm
note over NATTestLLM: Config: response_seq, delay_ms
Workflow->>NATTestLLM: request(prompt, llm_name="main")
activate NATTestLLM
NATTestLLM-->>Workflow: (after delay_ms) response = next(response_seq)
deactivate NATTestLLM
note right of Workflow: Subsequent calls cycle through response_seq\nCycle resets only when workflow reloads
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Pre-merge checks (3 passed)✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
✨ 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Nitpick comments (4)
.cursor/rules/nat-test-llm.mdc (4)
6-12: Minor clarity: document defaults explicitly.State that
delay_msdefaults to 0 if omitted, and clarify behavior whenresponse_seqis omitted vs. empty.
13-22: Quote YAML strings to avoid YAML edge cases.Unquoted scalars like yes/no/null can misparse. Quote sample values.
_type: nat_test_llm - response_seq: [alpha, beta, gamma] + response_seq: ["alpha", "beta", "gamma"] delay_ms: 0
23-24: Provide a minimal code snippet for programmatic usage.A short code block (Python) showing builder + wrapper call will improve copy/paste-ability.
Happy to draft a concrete snippet targeting one wrapper (e.g., LangChain) if you confirm preferred wrapper and method name.
6-6: Optional: group related rules under a subdirectory.For future NAT test rules, consider
.cursor/rules/nat-test/llm.mdcto follow the "kebab-case subdirectory" learning.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.cursor/rules/nat-test-llm.mdc(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
.cursor/rules/**/*.mdc
📄 CodeRabbit inference engine (.cursor/rules/cursor-rules.mdc)
.cursor/rules/**/*.mdc: Place all Cursor rule files under PROJECT_ROOT/.cursor/rules/
Name rule files in kebab-case, always using the .mdc extension, with descriptive filenames
Rule descriptions must start with the phrase: 'Follow these rules when'
Descriptions should specify clear trigger conditions (e.g., when the user's request meets certain criteria)
Use precise action verbs in descriptions (e.g., creating, modifying, implementing, configuring, adding, installing, evaluating)
Descriptions should be comprehensive but concise
Use consistent project terminology in descriptions (e.g., NAT workflows, NAT CLI commands)
Proofread descriptions for typos and grammar
Avoid overly narrow descriptions when rules cover multiple related scenarios
Prefer the 'user's request involves' phrasing pattern in descriptions
Rule files must include the specified frontmatter structure: description (string), optional globs, and alwaysApply (boolean), followed by markdown content
Files:
.cursor/rules/nat-test-llm.mdc
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
PR: NVIDIA/NeMo-Agent-Toolkit#0
File: .cursor/rules/cursor-rules.mdc:0-0
Timestamp: 2025-08-22T20:18:28.041Z
Learning: Applies to .cursor/rules/**/*.mdc : Use consistent project terminology in descriptions (e.g., NAT workflows, NAT CLI commands)
Learnt from: CR
PR: NVIDIA/NeMo-Agent-Toolkit#0
File: .cursor/rules/cursor-rules.mdc:0-0
Timestamp: 2025-08-22T20:18:28.041Z
Learning: Applies to .cursor/rules/*/ : For related rules on the same topic, create a kebab-case subdirectory under .cursor/rules/
Learnt from: CR
PR: NVIDIA/NeMo-Agent-Toolkit#0
File: .cursor/rules/cursor-rules.mdc:0-0
Timestamp: 2025-08-22T20:18:28.041Z
Learning: Applies to .cursor/rules/**/*.mdc : Rule descriptions must start with the phrase: 'Follow these rules when'
📚 Learning: 2025-08-22T20:18:28.041Z
Learnt from: CR
PR: NVIDIA/NeMo-Agent-Toolkit#0
File: .cursor/rules/cursor-rules.mdc:0-0
Timestamp: 2025-08-22T20:18:28.041Z
Learning: Applies to .cursor/rules/**/*.mdc : Use consistent project terminology in descriptions (e.g., NAT workflows, NAT CLI commands)
Applied to files:
.cursor/rules/nat-test-llm.mdc
🔇 Additional comments (1)
.cursor/rules/nat-test-llm.mdc (1)
27-29: LGTM: behavior notes are clear and actionable.Cycle/reset semantics and "plain string" return are well-specified.
yczhang-nv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Only one small suggestion.
willkill07
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor feedback. Feel free to ignore
Signed-off-by: Daniel Wang <daniewang@nvidia.com>
Description
Close
.cursor/rules/nat-test-llm.mdcwith usage rules fornat_test_llm(YAML example, fields response_seq/delay_ms, builder pattern, wrapper hints). I separated this code from the original big PR because I want to make sure I don't mess things up for cursor rules :)
By Submitting this PR I confirm:
Summary by CodeRabbit
New Features
Documentation