fix(nemo-agents): add support for translation of mcp/skills/tools from agent.yaml to FabricConfig#890
Conversation
📝 WalkthroughWalkthroughAgent configuration now uses typed ChangesShared capability translation
Sequence Diagram(s)sequenceDiagram
participant AgentYAML
participant AgentConfig
participant translate_agent_config
participant FabricConfig
AgentYAML->>AgentConfig: Load skills, mcp, and tools
AgentConfig->>translate_agent_config: Provide validated configuration
translate_agent_config->>translate_agent_config: Reject top-level prompts
translate_agent_config->>FabricConfig: Translate capability sections
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
plugins/nemo-agents/examples/nemo-agent-config/README.md (1)
14-16: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winKeep this page a HOW-TO.
Move the shared-field contract explanation to a reference page and link it here. As per coding guidelines, “Each documentation page should fit ONE Diataxis quadrant.”
Source: Coding guidelines
plugins/nemo-agents/src/nemo_agents_plugin/fabric/translator.py (1)
99-116: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winType these helpers with Fabric models.
_skills_config,_mcp_config, and_tools_configshould returnfabric.SkillConfig | None,fabric.McpConfig | None, andfabric.ToolsConfig | Noneinstead ofAny.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@plugins/nemo-agents/src/nemo_agents_plugin/fabric/translator.py` around lines 99 - 116, Update the return annotations of _skills_config, _mcp_config, and _tools_config to use fabric.SkillConfig | None, fabric.McpConfig | None, and fabric.ToolsConfig | None respectively, replacing Any while preserving their existing None handling and Fabric model construction.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@plugins/nemo-agents/src/nemo_agents_plugin/fabric/translator.py`:
- Around line 99-116: Update the return annotations of _skills_config,
_mcp_config, and _tools_config to use fabric.SkillConfig | None,
fabric.McpConfig | None, and fabric.ToolsConfig | None respectively, replacing
Any while preserving their existing None handling and Fabric model construction.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 61632f57-2af5-4c28-904a-b188c3012f9b
📒 Files selected for processing (6)
plugins/nemo-agents/examples/nemo-agent-config/README.mdplugins/nemo-agents/examples/nemo-agent-config/agent.yamlplugins/nemo-agents/src/nemo_agents_plugin/agent_config.pyplugins/nemo-agents/src/nemo_agents_plugin/fabric/translator.pyplugins/nemo-agents/tests/unit/test_agent_config.pyplugins/nemo-agents/tests/unit/test_fabric_translator.py
|
Build on the shared Platform-to-Fabric config translation from NVIDIA-NeMo#890 and apply NAT-native MCP and blocked-tool mappings before the workflow runtime starts. Co-authored-by: Manjesh Mogallapalli <mmogallapall@nvidia.com> Signed-off-by: Ajay Thorve <athorve@nvidia.com>
Signed-off-by: Anuradha Karuppiah <26330987+AnuradhaKaruppiah@users.noreply.github.com>
Build on the shared Platform-to-Fabric config translation from NVIDIA-NeMo#890 and apply NAT-native MCP and blocked-tool mappings before the workflow runtime starts. Co-authored-by: Manjesh Mogallapalli <mmogallapall@nvidia.com> Signed-off-by: Ajay Thorve <athorve@nvidia.com>
Build on the shared Platform-to-Fabric config translation from NVIDIA-NeMo#890 and apply NAT-native MCP and blocked-tool mappings before the workflow runtime starts. Co-authored-by: Manjesh Mogallapalli <mmogallapall@nvidia.com> Signed-off-by: Ajay Thorve <athorve@nvidia.com>
Summary
This PR extends the Platform-owned
nemo-agents-spec-v1config translation for Fabric-backed NeMo Agents.The main boundary remains:
This change adds support for translating shared Platform config fields that have direct FabricConfig targets today:
skills,mcp, andtools.Changes
AgentConfigmodels for shared capability sections:skills.pathsmcp.serverstools.blockedFabricConfig.promptsfield.promptsduring Fabric translation so prompt config is not silently ignored.agent.yamlwith neutral shared capability sections.Out Of Scope
Those should be handled once the RFC 121/122 object shapes and runtime story are finalized.
Validation
Passed:
Result:
Summary by CodeRabbit
New Features
Bug Fixes
Documentation