agentleFS
NVIDIAKnown publisherNVIDIA/NeMo-Agent-Toolkit/skills/nat-agent-configuration/references/agents.md

NeMo-Agent-Toolkit / references

AGENTS.md2.7k starsChanged 16 months agoApache-2.0View on GitHub

The nine built-in NeMo Agent Toolkit agent types: when to pick which, key traits, and YAML examples. Companion: additional-agent-types.md lists the lesser-used types in detail. Classify the workflow shape before scaffolding: Alternates between reasoning and acting: think -> call tool -> observe result -> repeat until done (up to max_tool_calls, default 15). Use when: Tasks require interleaved reasoning over intermediate tool results; the LLM does not reliably support native tool calling (ReAct falls back to text-based Action:/Action Input: parsing); tools…

Trending

Quiet since August.about the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 2 mentionsApr 2026: 4 mentionsMay 2026: 2 mentionsJun 2026: 1 mentionJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the NVIDIA/NeMo-Agent-Toolkit repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about NVIDIA/NeMo-Agent-Toolkit

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

10 more on GitHub

The file

We split this agents.md into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use a different agent type (tool_calling_agent for simpler cases, router_agent for single-branch dispatch)

    line 59
  2. Distinctive:

    Keep the workflow input focused on the task description only.

    line 61
  3. Distinctive:

    When you need a Python entry point that invokes a NeMo Agent Toolkit workflow, use the programmatic API instead of shelling out:

    line 100
  4. Very specific:

    Call await runner.result() to get the final answer as a string

    line 136

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
agents.md

Built-in Agent Types

The nine built-in NeMo Agent Toolkit agent types: when to pick which, key traits, and YAML examples. Companion: additional-agent-types.md lists the lesser-used types in detail.

Classify the workflow shape before scaffolding:

  • Fixed steps with no LLM decision-making → sequential_executor / parallel_executor or a plain function.
  • Research, analyze, decide, summarize, RAG, MCP, iterative tool use, "build an agent that…" → an agent type below.
  • If ambiguous, ask one clarifying question before writing YAML.
Agent_typeLLM RequiredUses ToolsKey Trait
ReActreact_agentYesYesInterleaved reason + act loop
Reasoningreasoning_agentYes (thinking-capable)Via inner agentPlan-then-delegate wrapper
ReWOOrewoo_agentYesYesSeparate plan / execute / solve phases
Responses APIresponses_api_agentYes (Responses API)NeMo Agent Toolkit + built-in + MCPDirect LLM tool binding with MCP support
Routerrouter_agentYesNo (routes to branches)LLM-based single-branch dispatch
Tool Callingtool_calling_agentYesYesStandard tool-calling API, direct output
Auto Memory Wrapperauto_memory_agentYesVia inner agentPersistent memory across turns
Parallel Executorparallel_executorNoYes (fixed list)Concurrent fan-out/fan-in pipeline
Sequential Executorsequential_executorNoYes (fixed list)Deterministic linear pipeline

ReAct Agent (react_agent)

Alternates between reasoning and acting: think -> call tool -> observe result -> repeat until done (up to max_tool_calls, default 15).

Use when: Tasks require interleaved reasoning over intermediate tool results; the LLM does not reliably support native tool calling (ReAct falls back to text-based Action:/Action Input: parsing); tools lack clean JSON schemas.

Avoid when: Tools have well-defined schemas (prefer tool_calling_agent); parallel tool execution is needed; response format must be guaranteed; the task is a simple single-tool lookup; the model is a reasoning model that uses thinking tokens.

workflow:
  _type: react_agent
  tool_names: [wikipedia_search, current_datetime]
  llm_name: nim_llm
  verbose: true

Native tool calling vs text-based parsing: The ReAct agent supports two modes for tool invocation:

  • use_native_tool_calling: false (default) — text-based ReAct parsing. The agent generates text with Action: and Action Input: markers. More reliable across different LLM providers. Use this as the default.
  • use_native_tool_calling: true — uses the LLM's function/tool-calling API. More structured but requires the LLM endpoint to support OpenAI-compatible tool calling. Some providers (including certain NVIDIA Inference API models) may not invoke tools correctly in this mode. If the agent generates responses without calling any tools, switch to false.
workflow:
  _type: react_agent
  tool_names: [wikipedia_search, current_datetime]
  llm_name: nim_llm
  verbose: true
  # Start with false (text-based). Switch to true only if the LLM
  # reliably supports native tool calling.
  use_native_tool_calling: false

Do not override the agent's tool-calling format in the workflow input. The ReAct agent has a built-in system prompt that instructs the LLM on the correct Action: / Action Input: format. Adding format instructions to the workflow input (the user query) will not help and may conflict with the system prompt. If the LLM still outputs the wrong format (e.g., <function_calls> XML tags), the fix is one of:

  1. Try a different LLM that follows the ReAct format reliably
  2. Switch use_native_tool_calling: true if the endpoint supports OpenAI-compatible tool calling
  3. Use a different agent type (tool_calling_agent for simpler cases, router_agent for single-branch dispatch)

Keep the workflow input focused on the task description only.

Temperature for ReAct agents: Use temperature: 0.0 for deterministic, reproducible tool-calling behavior. Higher temperatures (0.3–0.7) can improve output diversity in the final synthesis step but may cause the agent to skip tool calls or hallucinate action formats. When optimizing agent output quality, adjust the prompt instructions before raising temperature.

Hint: Can be used when a pure LLM workflow would be sufficient to solve a task. Even though in that case no tool would be necessary, the ReAct agent requires at least one tool. Just add the built-in current_datetime tool so the list is not empty.

Tool Calling Agent (tool_calling_agent)

Uses the LLM's native function/tool-calling API to select and invoke tools. Returns the tool's structured output directly, without the ReAct reasoning loop. Can iterate up to max_iterations (default 15).

Use when: Tools have well-defined JSON schemas — especially MCP tools (via mcp_client) and function groups with input_schema. You want structured output returned directly. The LLM endpoint supports OpenAI-compatible tool calling. This is the preferred choice for MCP-based agents.

Avoid when: The LLM doesn't support native tool calling reliably (use react_agent with text parsing instead); tasks require interleaved reasoning over intermediate results before deciding the next action.

workflow:
  _type: tool_calling_agent
  tool_names: [kb_tools]
  llm_name: nvidia_llm
  verbose: true
  handle_tool_errors: true   # catch tool exceptions and pass them back to the LLM for recovery

Sequential Executor (sequential_executor)

Deterministic, LLM-free pipeline. Executes a fixed list of functions in order, passing each function's output as the next function's input. No reasoning involved. Used by the Demographics Repartition agent for chained generation workflows.

Use when: Processing data through multiple sequential transformation stages with predictable, hard-coded execution order.

Avoid when: Conditional branching, parallel processing, or any form of LLM-guided decision-making is needed.

workflow:
  _type: sequential_executor
  tool_list: [text_processor, data_analyzer, report_generator]

Running Agents Programmatically

When you need a Python entry point that invokes a NeMo Agent Toolkit workflow, use the programmatic API instead of shelling out:

import asyncio
from pathlib import Path

from nat.builder.workflow_builder import WorkflowBuilder
from nat.runtime.loader import load_config


async def run_workflow(query: str) -> str:
    # 1. Load YAML config
    config = load_config("workflow.yaml")

    # 2. Build the workflow (registers all components)
    async with WorkflowBuilder.from_config(config) as builder:
        workflow = await builder.build()

        # 3. Run the workflow and get the result
        async with workflow.run(query) as runner:
            result = await runner.result()

    return str(result)


if __name__ == "__main__":
    import sys
    query = sys.argv[1] if len(sys.argv) > 1 else "Hello"
    print(asyncio.run(run_workflow(query)))

Key points:

  • WorkflowBuilder.from_config() is an async context manager — always use async with
  • builder.build() returns a Workflow object
  • workflow.run(query) is also an async context manager — use async with to get a runner
  • Call await runner.result() to get the final answer as a string

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.