NeMo-Agent-Toolkit / nat-cli
Cursor rule2.7k starsChanged 16 months agoApache-2.0View on GitHub
Follow these rules when the user requests to evaluate a workflow
Trending
Quiet since August.about the whole repository
Who's talking about NVIDIA/NeMo-Agent-Toolkit
- awslabs/agentcore-samples“02-use-cases - TypeError: _patch_asyncio.<locals>.run() got an unexpected keyword argument 'loop_factory'”GitHub · Sep 29, 2025 · 3 reactions
- NVIDIA-AI-Blueprints/deep-researcher-agent“feat: add exa_web_search data source”GitHub · Apr 14, 2026 · 2 reactions
- astral-sh/uv“Stabilize conflicting modules warning”GitHub · Aug 18, 2025 · 1 reactions
- olga-mir/experiments“68 moaar agents and design canvas”GitHub · Aug 23, 2026
- LennyMalcolm0/langchain“ChatOpenAI/ChatAnthropic: request_timeout=None (default) disables SDK timeout, causing infinite hangs”GitHub · Jul 17, 2026
The biggest 5 of 15 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 15
Talked about on GitHub (15 times).
On GitHub · 15
- Sep 29, 202502-use-cases - TypeError: _patch_asyncio.<locals>.run() got an unexpected keyword argument 'loop_factory' — awslabs/agentcore-samples3 reactions · 5 comments
- Apr 14, 2026feat: add exa_web_search data source — NVIDIA-AI-Blueprints/deep-researcher-agent2 reactions · 7 comments
- Aug 18, 2025Stabilize conflicting modules warning — astral-sh/uv1 reaction · 2 comments
- Aug 23, 202668 moaar agents and design canvas — olga-mir/experiments0 reactions
- Jul 17, 2026ChatOpenAI/ChatAnthropic: request_timeout=None (default) disables SDK timeout, causing infinite hangs — LennyMalcolm0/langchain0 reactions
10 more on GitHub
- Jun 3, 2026ChatNVIDIA forwards verify_ssl into chat completion payload — langchain-ai/langchain-nvidia0 reactions
- May 22, 2026[BUZZOK-30879] streaming memory agent plugin — datarobot-oss/datarobot-genai0 reactions · 1 comment
- May 2, 2026feat(learning): add expected-output assertions + accuracy scoring to batch-runner (NeMo parity) — subinium/CrowClaw0 reactions · 1 comment
- Apr 14, 2026[Question] when an A2A server has OAuth enabled, how does the A2A client know how to generate the corresponding token? — a2aproject/A2A0 reactions · 4 comments
- Apr 2, 2026Enable eager authentication — NVIDIA/NeMo-Agent-Toolkit-UI0 reactions · 5 comments
- Apr 2, 2026Enable redirect-based OAuth flow — NVIDIA/NeMo-Agent-Toolkit-UI0 reactions · 3 comments
- Mar 6, 2026ChatOpenAI/ChatAnthropic: request_timeout=None (default) disables SDK timeout, causing infinite hangs — langchain-ai/langchain0 reactions · 8 comments
- Mar 6, 2026Add agent thought process outputs — NVIDIA/NeMo-Agent-Toolkit-UI0 reactions · 4 comments
- Jan 29, 2026Add sandbox agent example with Docker and Daytona support — NVIDIA/NeMo-Agent-Toolkit-Examples0 reactions · 16 comments
- Oct 24, 2025Add support for exporting telemetry to DBNL — dbnlAI/NeMo-Agent-Toolkit0 reactions
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/nat-agent-configuration/references/agents.mdAGENTS.md
- .cursor/rules/cursor-rules.mdcCursor rule
- .cursor/rules/documentation/capitalization.mdcCursor rule
- .cursor/rules/documentation/categories.mdcCursor rule
- .cursor/rules/documentation/formatting.mdcCursor rule
- .cursor/rules/documentation/general.mdcCursor rule
- .cursor/rules/documentation/latinisms.mdcCursor rule
- .cursor/rules/documentation/lists-and-tables.mdcCursor rule
- .cursor/rules/documentation/numbers-and-dates.mdcCursor rule
- .cursor/rules/documentation/punctuation.mdcCursor rule
- .cursor/rules/documentation/voice-and-tone.mdcCursor rule
- .cursor/rules/documentation/writing-process.mdcCursor rule
- .cursor/rules/general.mdcCursor rule
- .cursor/rules/nat-agents/general.mdcCursor rule
- .cursor/rules/nat-cli/general.mdcCursor rule
- .cursor/rules/nat-cli/nat-info.mdcCursor rule
- .cursor/rules/nat-cli/nat-run-serve.mdcCursor rule
- .cursor/rules/nat-cli/nat-workflow.mdcCursor rule
- .cursor/rules/nat-setup/general.mdcCursor rule
- .cursor/rules/nat-setup/nat-toolkit-installation.mdcCursor rule
- .cursor/rules/nat-tests/general.mdcCursor rule
- .cursor/rules/nat-tests/integration-tests.mdcCursor rule
- .cursor/rules/nat-tests/nat-test-llm.mdcCursor rule
- .cursor/rules/nat-workflows/add-functions.mdcCursor rule
- .cursor/rules/nat-workflows/add-tools.mdcCursor rule
- .cursor/rules/nat-workflows/general.mdcCursor rule
- nat-agent-configurationSkill
- nat-evaluationSkill
- nat-installationSkill
- nat-mcp-and-servingSkill
- nat-optimizationSkill
- nat-path-checksSkill
- nat-telemetrySkill
- nat-tools-and-functionsSkill
- nat-user-rulesSkill
- nat-workflow-creationSkill
- skill-evolutionSkill
The file
Show its rules and text
We split this nat-eval.mdc into the rules it gives an agent
25 rules. About 0 are common, 18 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 129
When working with configuration files that may not contain an evaluation section, follow these rules:
- Very specific: line 132
If the specified configuration file does not contain an evaluation section:
- Very specific: line 134
Search for alternative config files: Look for configuration files in the same directory that contain an evaluation section
- Distinctive: line 135
Common evaluation config patterns: Check for files with names like:
- Distinctive: line 140
Suggest available options: If multiple evaluation configs are found, present them to the user for selection
- Distinctive: line 143
If no evaluation configuration can be found automatically:
- Distinctive: line 146
Request essential information: Ask the user to provide the following required information:
- Distinctive: line 152
When evaluation configuration is missing, guide the user through creating one:
- Distinctive: line 163
When user provides minimal information, create a basic evaluation configuration:
- Distinctive: line 177
Before proceeding with evaluation:
- Distinctive: line 178
Verify the dataset file exists and is accessible
- Very specific: line 185
Use --result_json_path to extract specific fields from complex workflow outputs:
- Distinctive: line 214
When evaluating against a running service:
- Very specific: line 217
Start the service: nat serve --config_file config.yml --host localhost --port 8000
- Very specific: line 218
Verify service is running: Check http://localhost:8000/docs
- Distinctive: line 268
Prepare Quality Datasets: Ensure ground truth answers are accurate and comprehensive
- Distinctive: line 270
Configure Multiple Evaluators: Use different evaluation metrics for comprehensive assessment
- Distinctive: line 271
Start Small: Test with a small dataset before running full evaluations
- Distinctive: line 273
Document Evaluation Setup: Keep clear records of evaluation configurations and results
- Very specific: line 275
Incremental Evaluation: Use --skip_completed_entries for long-running evaluations
- Very specific: line 276
Statistical Significance: Use multiple repetitions (--reps) for robust results
- Distinctive: line 277
Monitor Resource Usage: Consider memory and compute requirements for large datasets
- Distinctive: line 310
Connection Errors: Verify endpoint URLs and service availability
- Distinctive: line 311
JSON Path Errors: Test JSON paths with sample outputs first
- Distinctive: line 312
Missing Ground Truth: Ensure dataset format matches expected structure
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: Follow these rules when the user requests to evaluate a workflow
globs:
alwaysApply: false
---
# NeMo Agent Toolkit Evaluation Commands
This rule provides guidance for using `nat eval` command to assess the accuracy of NeMo Agent Toolkit workflows and instrument their performance characteristics.
## nat eval
Evaluates a workflow with a specified dataset to assess accuracy and performance.
### Basic Usage
```bash
nat eval --config_file CONFIG_FILE [OPTIONS]
```
### Required Arguments
- `--config_file FILE`: A JSON/YAML file that sets the parameters for the workflow and evaluation
### Available Options
- `--dataset FILE`: A JSON file with questions and ground truth answers (overrides dataset path in config)
- `--result_json_path TEXT`: JSON path to extract result from workflow output (default: `$`)
- `--skip_workflow`: Skip workflow execution and use provided dataset for evaluation
- `--skip_completed_entries`: Skip dataset entries that already have generated answers
- `--endpoint TEXT`: Use endpoint for running workflow (e.g., `http://localhost:8000/generate`)
- `--endpoint_timeout INTEGER`: HTTP response timeout in seconds (default: 300)
- `--reps INTEGER`: Number of repetitions for evaluation (default: 1)
### Examples
```bash
# Basic evaluation with config file
nat eval --config_file configs/eval_config.yml
# Evaluate with custom dataset
nat eval --config_file configs/eval_config.yml --dataset data/test_questions.json
# Evaluate against running endpoint
nat eval --config_file configs/eval_config.yml --endpoint http://localhost:8000/generate
# Skip workflow execution (evaluate existing results)
nat eval --config_file configs/eval_config.yml --skip_workflow
# Multiple evaluation repetitions
nat eval --config_file configs/eval_config.yml --reps 3
# Extract specific result field
nat eval --config_file configs/eval_config.yml --result_json_path "$.response.answer"
# Skip already completed entries and extend timeout
nat eval --config_file configs/eval_config.yml --skip_completed_entries --endpoint_timeout 600
```
## Dataset Format
The evaluation dataset should be a JSON file containing questions and ground truth answers:
### Basic Format
```json
[
{
"question": "What is machine learning?",
"ground_truth": "Machine learning is a subset of artificial intelligence..."
},
{
"question": "Explain neural networks",
"ground_truth": "Neural networks are computing systems inspired by..."
}
]
```
### Extended Format
```json
[
{
"question": "What is deep learning?",
"ground_truth": "Deep learning is a subset of machine learning...",
"context": "AI fundamentals",
"difficulty": "intermediate",
"category": "technical"
}
]
```
### Dataset with Generated Answers (for skip_workflow)
```json
[
{
"question": "What is AI?",
"ground_truth": "Artificial intelligence refers to...",
"generated_answer": "AI is the simulation of human intelligence..."
}
]
```
## Configuration File for Evaluation
The evaluation configuration should include both workflow and evaluation settings:
```yaml
# Workflow components
llms:
nim_llm:
_type: "nim_llm"
model: "nvidia/nemotron-3.5-lightning-30b-a3b"
temperature: 0.7
workflow:
_type: "simple_rag"
llm: llms.nim_llm
# Evaluation settings
evaluation:
dataset: "data/eval_dataset.json"
evaluators:
- _type: "semantic_similarity"
threshold: 0.8
- _type: "factual_accuracy"
metrics:
- "accuracy"
- "bleu_score"
- "semantic_similarity"
```
## Handling Missing Evaluation Configuration
When working with configuration files that may not contain an evaluation section, follow these rules:
### 1. Auto-detection of Evaluation Configuration
If the specified configuration file does not contain an `evaluation` section:
1. **Search for alternative config files**: Look for configuration files in the same directory that contain an `evaluation` section
2. **Common evaluation config patterns**: Check for files with names like:
- `*_eval.yml` or `*_eval.yaml`
- `*_evaluation.yml` or `*_evaluation.yaml`
- `eval_*.yml` or `eval_*.yaml`
- `evaluation_*.yml` or `evaluation_*.yaml`
3. **Suggest available options**: If multiple evaluation configs are found, present them to the user for selection
### 2. User Guidance for Missing Evaluation Section
If no evaluation configuration can be found automatically:
1. **Inform the user**: Clearly explain that no evaluation section was found in the configuration file
2. **Request essential information**: Ask the user to provide the following required information:
- **Dataset path**: Location of the evaluation dataset (JSON file with questions and ground truth)
- **Evaluators**: Which evaluation metrics to use (e.g., semantic_similarity, factual_accuracy)
- **Output preferences**: Where to save results and what format to use
### 3. Interactive Configuration Building
When evaluation configuration is missing, guide the user through creating one:
```bash
# Example prompts for missing evaluation config
"No evaluation section found in config file. Please provide:"
"1. Dataset file path (JSON with questions and ground_truth):"
"2. Evaluation metrics (comma-separated): [semantic_similarity, factual_accuracy, bleu_score]:"
"3. Output file path (optional):"
```
### 4. Minimal Evaluation Configuration Template
When user provides minimal information, create a basic evaluation configuration:
```yaml
evaluation:
dataset: "path/to/user/provided/dataset.json"
evaluators:
- _type: "semantic_similarity"
threshold: 0.8
metrics:
- "accuracy"
- "semantic_similarity"
```
### 5. Configuration Validation
Before proceeding with evaluation:
1. Verify the dataset file exists and is accessible
2. Validate the dataset format (contains required `question` and `ground_truth` fields)
3. Confirm all specified evaluators are available
4. Warn if essential evaluation components are missing
## Result JSON Path Usage
Use `--result_json_path` to extract specific fields from complex workflow outputs:
### Example Workflow Output
```json
{
"metadata": {"timestamp": "2024-01-01T00:00:00"},
"response": {
"answer": "The actual answer text",
"confidence": 0.95,
"sources": ["doc1.pdf", "doc2.pdf"]
},
"debug_info": {"tokens_used": 150}
}
```
### JSON Path Examples
```bash
# Extract just the answer
nat eval --config_file config.yml --result_json_path "$.response.answer"
# Extract answer with confidence
nat eval --config_file config.yml --result_json_path "$.response"
# Extract root level (default)
nat eval --config_file config.yml --result_json_path "$"
```
## Endpoint Evaluation
When evaluating against a running service:
### Prerequisites
1. Start the service: `nat serve --config_file config.yml --host localhost --port 8000`
2. Verify service is running: Check `http://localhost:8000/docs`
### Evaluation
```bash
# Evaluate against local service
nat eval --config_file eval_config.yml --endpoint http://localhost:8000/generate
# Evaluate against remote service with timeout
nat eval --config_file eval_config.yml --endpoint https://api.example.com/workflow --endpoint_timeout 300
```
## Evaluation Workflows
### 1. Initial Workflow Evaluation
```bash
# Validate configuration
nat validate --config_file eval_config.yml
# Run evaluation
nat eval --config_file eval_config.yml --dataset test_data.json
# Review results and iterate
```
### 2. Continuous Evaluation
```bash
# Skip completed entries for incremental evaluation
nat eval --config_file eval_config.yml --skip_completed_entries
# Multiple repetitions for statistical significance
nat eval --config_file eval_config.yml --reps 5
```
### 3. Production Endpoint Evaluation
```bash
# Start production service
nat serve --config_file prod_config.yml --host 0.0.0.0 --port 8000 --workers 4
# Evaluate production endpoint
nat eval --config_file eval_config.yml --endpoint http://localhost:8000/generate --endpoint_timeout 600
```
### 4. Evaluation-Only Mode
```bash
# When you have pre-generated results
nat eval --config_file eval_config.yml --skip_workflow --dataset results_with_generated_answers.json
```
## Best Practices
1. **Prepare Quality Datasets**: Ensure ground truth answers are accurate and comprehensive
2. **Use Representative Data**: Include diverse questions that reflect real-world usage
3. **Configure Multiple Evaluators**: Use different evaluation metrics for comprehensive assessment
4. **Start Small**: Test with a small dataset before running full evaluations
5. **Version Control Datasets**: Track dataset versions alongside code changes
6. **Document Evaluation Setup**: Keep clear records of evaluation configurations and results
7. **Use Timeouts Appropriately**: Set reasonable timeouts based on expected response times
8. **Incremental Evaluation**: Use `--skip_completed_entries` for long-running evaluations
9. **Statistical Significance**: Use multiple repetitions (`--reps`) for robust results
10. **Monitor Resource Usage**: Consider memory and compute requirements for large datasets
## Common Evaluation Scenarios
### A/B Testing Configurations
```bash
# Evaluate baseline configuration
nat eval --config_file baseline_config.yml --dataset test_set.json --output results_baseline.json
# Evaluate improved configuration
nat eval --config_file improved_config.yml --dataset test_set.json --output results_improved.json
# Compare results
```
### Parameter Tuning
```bash
# Evaluate different temperature settings
nat eval --config_file config.yml --override llms.nim_llm.temperature 0.3 --dataset tune_set.json
nat eval --config_file config.yml --override llms.nim_llm.temperature 0.7 --dataset tune_set.json
nat eval --config_file config.yml --override llms.nim_llm.temperature 0.9 --dataset tune_set.json
```
### Performance Monitoring
```bash
# Regular evaluation with metrics collection
nat eval --config_file monitor_config.yml --endpoint http://prod-service:8000/generate --reps 3
```
## Troubleshooting
- **Timeout Errors**: Increase `--endpoint_timeout` for slow workflows
- **Memory Issues**: Process datasets in smaller batches
- **Connection Errors**: Verify endpoint URLs and service availability
- **JSON Path Errors**: Test JSON paths with sample outputs first
- **Missing Ground Truth**: Ensure dataset format matches expected structure
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

