Nemo Fabric Integrate
NVIDIAOfficialCreated by NVIDIA Corporation and Affiliates
- Skill
- Tool integration
- Automation and integrations
- Apache-2.0
- Medium risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides guidance on integrating NVIDIA NeMo Fabric into consumer applications, services, or platforms via its typed Python SDK. It covers the process of translating consumer-specific configurations into an in-memory FabricConfig, managing runtime lifecycles, validating deployments with planning and diagnostic tools, and consuming normalized results, artifacts, and telemetry.
What it does
- Translates consumer application or deployment configurations into typed FabricConfig objects.
- Manages the runtime lifecycle for agent harnesses, including single-invocation and stateful modes.
- Supports streaming of invocation results via native OpenAI or NeMo Relay paths.
- Provides validation mechanisms through plan and doctor utilities to check adapter compatibility.
- Consumes normalized RunResult objects, including artifacts, telemetry, and structured error metadata.
- Facilitates integration with external tools and MCP servers through the SDK.
When to use it
- When building a custom application or platform that requires agent harness execution.
- When you need to integrate specific adapter-based agents into a larger service architecture.
- When you need to validate adapter selection and capability routing before executing agent tasks.
- When you need to handle agent results, artifacts, and telemetry in a normalized format.
Advantages
- Provides a consistent, typed interface for diverse agent harnesses.
- Decouples consumer configuration from adapter-specific implementation details.
- Enables pre-execution validation of environment and capability requirements.
- Supports structured error handling and correlation across runtime lifecycles.
Usage examples
- “How do I initialize a single-invocation run using the NeMo Fabric SDK?”
- The agent provides the code pattern to instantiate a Fabric object and call the run method with a FabricConfig and input, returning a normalized RunResult.
- “How can I validate my adapter configuration before running an agent?”
- The agent explains the use of the plan and doctor methods to verify adapter selection, environment variables, and capability requirements without executing the model.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/nvidia/nemo-fabric-integrate/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip nemo-fabric-integrate.zip -d .agents/skills
Documentation by NVIDIA Corporation and Affiliates
Integrate NVIDIA NeMo Fabric Through The Python SDK
Use this skill when a consumer codebase — an application, service, evaluation
harness, or platform — needs to run agent harnesses through NeMo Fabric's typed
Python SDK. The consumer owns its own configuration object and translates it
into an in-memory FabricConfig; NeMo Fabric owns adapter selection, the runtime
lifecycle, and normalized results.
Integration Boundary
Use the public, in-memory contract. These rules keep a consumer integration supported and upgrade-safe:
Import only from the public
nemo_fabricpackage. Never import_nativeor any adapter-internal module.Build configuration as a typed
FabricConfigin memory and pass it directly to NeMo Fabric. Create every deployment or evaluation variant with ordinary Python functions andmodel_copy(deep=True). A platform integration can serialize the typed config inside a private transient run specification when it crosses a process boundary; that transport is not a public authoring format.Let NeMo Fabric own harness control. Do not reimplement start, invoke, or stop logic, and do not manage adapter threads, sessions, or processes directly.
Treat
runtime_id,invocation_id, andrequest_idas opaque correlation strings, not parsable or reusable state.
Refer to config-mapping.md for how to translate a
consumer config object into FabricConfig, and for the full list of mechanics
that stay hidden behind this boundary.
Install And Set Up The Environment
The consumer or its execution environment owns installation; NeMo Fabric validates runtime assumptions but never installs harnesses or credentials at run time.
Choose supported Python interpreters for the runtime, Harbor, and adapter environments from the installation guide.
Install the runtime with
uv pip install nemo-fabric(add theharborextra for the Harbor integration).Select the harness adapter through
HarnessConfig.adapter_id. To install the NeMo Fabric runtime, adapter, and supported harness in one environment, usenemo-fabric[claude],nemo-fabric[codex], ornemo-fabric[deepagents].Install Hermes Agent separately from the Fabric adapter. Follow the Hermes integration guide for the current compatible interpreter, source checkout, Relay dependencies, and adapter installation. The
nemo-fabric[hermes-agent]extra does not install Hermes Agent.In a separate adapter environment, install
nemo-fabric-adapters-<adapter>[harness]. This installs the adapter and supported harness dependencies without the NeMo Fabric runtime. Usefullinstead when that adapter package provides package-installable optional integrations.Point the runtime to a separate adapter environment with
ADAPTER_PYTHON. Use matching NeMo Fabric release versions for the runtime and adapter package unless a different pairing has been explicitly validated.If the adapter environment already manages a compatible harness, install the bare
nemo-fabric-adapters-<adapter>distribution. Bare adapter distributions contain only adapter-owned runtime dependencies.LangChain Deep Agents and Hermes adapter packages provide
relayand include the NeMo Relay Python package infull. Claude and Codex do not providerelay; theirharnessandfullextras install the supportednemo-relayCLI alongside the harness SDK.Provide model credentials through environment variables named by the config (
ModelConfig.api_key_env), never as literals in code.Forward other existing variables with
EnvironmentConfig.env_names; only names are stored in configuration and run plans.EnvironmentConfig.envsupplies literal values and does not expand$NAMEreferences. Neither field loads a.envfile.Keep named environment values unchanged while a runtime or service is active. NeMo Fabric rejects changed or unset values before invocation; restart the runtime and any associated service after changing them. With Harbor, deliver values into the task environment through Harbor's managed environment first.
Confirm the native extension is importable; SDK calls raise
FabricNativeUnavailableErrorwhen it is missing.For descriptor inspection without harness SDKs, install the separate
nemo-fabric-adapter-catalogpackage and callnemo_fabric_adapter_catalog.get_adapter_descriptor(adapter_id)orget_target_descriptor(target_id). Refer to the catalog guide. Catalog resources do not register execution runners; unknown IDs raiseKeyError. Validate against the task environment's descriptor before relying on a snapshot claim. Catalog source versions and fingerprints are not runtime-observed provenance.
Build The Typed Config From Consumer Config
Map the consumer's application, job, or deployment object into a FabricConfig
with the public models and helper methods:
from nemo_fabric import (
FabricConfig,
HarnessConfig,
InstructionConfig,
InstructionsConfig,
MetadataConfig,
ModelConfig,
RuntimeConfig,
ToolsConfig,
)
def to_tools_config(job) -> ToolsConfig | None:
enabled = job.enabled_tools
blocked = list(job.blocked_tools)
if enabled is None and not blocked:
return None
return ToolsConfig(
enabled=None if enabled is None else list(enabled),
blocked=blocked,
)
def to_fabric_config(job) -> FabricConfig:
config = FabricConfig(
metadata=MetadataConfig(name=job.name),
harness=HarnessConfig(adapter_id=job.adapter_id, resolution="preinstalled"),
models={
"default": ModelConfig(
provider=job.provider,
model=job.model,
api_key_env=job.api_key_env,
base_url=job.base_url,
)
},
instructions=(
InstructionsConfig(
system=InstructionConfig(
content=job.system_instruction,
mode=job.system_instruction_mode,
),
)
if job.system_instruction is not None
else None
),
runtime=RuntimeConfig(
input_schema="chat",
output_schema="message",
timeout_seconds=job.timeout_seconds,
max_turns=job.max_turns,
),
tools=to_tools_config(job),
)
config.add_skill_path(job.skill_dir)
config.add_mcp_server(
"github",
transport="streamable-http",
url="${GITHUB_MCP_URL}",
exposure="harness_native",
)
return configShape capabilities with
ToolsConfig,add_tool_definition,block_tools,add_skill_path,remove_skill_path,add_mcp_server,remove_mcp_server, andenable_relay.Use
add_tool_definitiononly when the selected adapter acceptstools.definitionsand publishes atool_definition_schema.Use a restricted
allowed_toolslist or non-emptyblocked_toolsonadd_mcp_serveronly when the selected adapter declares bothmcpandmcp.tool_filters. An unfiltered server requires onlymcp.allowed_tools=Noneexposes every discovered tool, while an empty list exposes none; blocked tools are removed after applying that allowlist. Tool names must be non-blank, and planning rejects a tool that appears in both lists.Configure MCP authentication only when the selected adapter declares
mcp.auth.oauth2ormcp.auth.service_account, matching the authentication type.Create deployment or evaluation variants with
model_copy(deep=True)and ordinary Python functions; each copy plans and runs independently.Pass
base_dir=...to anyFabriccall when the config uses relative paths, so skills, workspaces, and artifacts anchor to the consumer's own layout.
The repository code_review_agent example
shows this pattern end to end with complete Hermes Agent, Codex, Deep Agents,
environment, MCP, and telemetry variants. Reuse it rather than duplicating config
construction.
Choose A Lifecycle
For Deep Agents, mini-SWE-agent, and the LangGraph custom-agent example, pass the same UUID string through RunRequest.relay_session_root on each conversation turn to group Relay trajectories under one session. Core forwards the typed field as AgentRunRequest.relay_session_root; context keys do not control Relay propagation. An unusable UUID preserves per-request behavior. The remaining adapters do not consume this field.
Pick the smallest lifecycle the consumer needs:
Single invocation — one input, no retained state after the call.
await Fabric().run(config, input=...)runs the full start, invoke, and stop cycle and returns aRunResult. Passrequest=RunRequest(...)instead ofinput=...when the invocation needs a caller-owned request ID or context (the two are mutually exclusive).Stateful runtime — ordered turns over one logical harness lifecycle. Start it with
start_runtime(...)and use the returnedRuntimeas an async context manager so cleanup runs on exit — shutdown is attempted, not guaranteed (stop()can raiseFabricRuntimeError; see Consume Results And Handle Errors). A runtime accepts one active invocation at a time; overlapping calls raiseFabricStateError.Native OpenAI stream — adapter-native OpenAI Chat Completions chunks plus a separate terminal normalized result. Check
runtime.supports_openai_streaming, callruntime.invoke_openai_stream(...), iterate the returnedOpenAIInvokeStream, and then awaitstream.result(). The selected adapter descriptor must declarecapabilities.streaming. Each yielded mapping hasobject == "chat.completion.chunk"; an empty stream is valid. If iteration stops early, callawait stream.aclose()to drain without cancelling the target invocation. This path does not require NeMo Relay orstreaming=True.NVIDIA NeMo Relay stream — live, raw ATOF records plus a terminal normalized result. Install
nemo-fabric[streaming]to include the matching collector for the default embedded streaming path. Enable NeMo Relay, passstreaming=Truetostart_runtime(...), callruntime.invoke_stream(...), iterate the returnedInvokeStream, and then awaitstream.result(). Iteration ending does not indicate invocation success; invocation exceptions raise fromresult(), while harness-reported failures remain normalizedRunResultvalues. If iteration stops early, callawait stream.aclose()before starting another turn.aclose()waits for the turn to finish; it does not cancel the harness invocation. The SDK intentionally exposes only ATOF records generated by NeMo Relay. This path is independent of native OpenAI streaming. The collector registers the request before the agent is invoked, then routes the matching ATOF root scope and its descendants by request ID and UUID ancestry. By default, streaming starts an embedded collector. Setlaunch_collector=Falseto use an externally managed collector; configure its base URL as thenemo-fabric-streamsink withtransport="ndjson". The runtime directs Relay to<base-url>/v1/atofand uses the collector control and stream endpoints. The bundled Pi adapter requires the embedded collector. Do not setlaunch_collector=Falsefor Pi streaming. The embedded collector waits up tocompletion_wait_timeoutseconds (1.0 by default) for a lateagent_settledmarker. The collector limits each record to 1 MiB and each request queue to 1,024 records or 16 MiB of encoded data. Thestreaming=Trueflag does not enable NeMo Relay by itself. Withoutstreaming=True, startup leaves the NeMo Relay configuration unchanged.
For explicit environment management, call prepare_environment(config) or
attach_environment(config, reference), then start_runtime_in(config, environment).
Use typed EnvironmentHandle and EnvironmentReference objects. Stop the
runtime before calling release_environment(environment) separately. Provider
availability and reuse limits vary; task paths must remain strings for non-local
environments. See the environment lifecycle guide.
The selected adapter owns the execution topology. The bundled Claude, Codex,
Deep Agents, and Hermes Agent adapters retain their native client, graph/checkpointer,
or agent/database inside one local host for the full runtime. Local process
and python adapters use this host lifecycle; consumers do not select another
local execution mechanism in FabricConfig. Do not replay an invocation after
a runtime failure. Stop the failed runtime and explicitly start a new one
according to the application's retry policy.
The lifecycle fragment below shows the available forms. It assumes the caller
has already set config = to_fabric_config(job) and chosen base, as described
in the configuration example above:
import asyncio
from nemo_fabric import Fabric
async def main() -> None:
fabric = Fabric()
# Single invocation
result = await fabric.run(config, base_dir=base, input="Review the changes.")
# Multi-turn
async with await fabric.start_runtime(config, base_dir=base) as runtime:
first = await runtime.invoke(input="Inspect the repository")
second = await runtime.invoke(input="Now review the latest patch")
# Adapter-native OpenAI Chat Completions chunks
async with await fabric.start_runtime(config, base_dir=base) as runtime:
if runtime.supports_openai_streaming:
stream = runtime.invoke_openai_stream(input="Review the latest patch")
async for chunk in stream:
print(chunk)
openai_streamed_result = await stream.result()
# NeMo Relay streaming
streaming_config = config.model_copy(deep=True).enable_relay()
async with await fabric.start_runtime(
streaming_config,
base_dir=base,
streaming=True,
) as runtime:
stream = runtime.invoke_stream(input="Review the latest patch")
async for record in stream:
print(record)
streamed_result = await stream.result()
asyncio.run(main())NeMo Fabric owns no application scheduling queue, worker pool, retry policy, or
global concurrency policy. Each runtime still permits only one active
invocation; start independent runtimes for parallel work. The NeMo Relay
streaming path uses an internal bounded transport queue and TCP backpressure
only to carry one invocation's ATOF records. Treat stream.result() as
authoritative, and reconstruct nested work from ATOF uuid and parent_uuid
fields rather than stream order.
For native OpenAI streaming, the SDK owns the authenticated loopback HTTP
transport, chunked NDJSON framing, and correlation values. Consumer code
supplies no listener or credentials. The adapter executes exactly one
invocation, and the terminal RunResult remains separate from the chunk stream.
Fully consume the stream or call await stream.aclose() before starting another
turn. Awaiting stream.result() also drains and discards unread native OpenAI
chunks, so consume the iterator first when the application needs every chunk.
Validate Before Running
Resolve and diagnose before spending work on a runtime, especially in a new environment or before relying on an optional capability:
fabric = Fabric()
plan = fabric.plan(config, base_dir=base) # sync: adapter + capabilities
report = await fabric.doctor(config, base_dir=base) # async: preflight checks
print(plan.adapter.adapter_id, report.status)Use
plan(...)to confirm adapter selection and capability routing before running. Planning validatesharness.settingsagainst the exact resolved Adapter Descriptor and, when present,workflow.settingsagainst the exact resolved Adapter Target Descriptor.Use
doctor(...)to check adapter availability, resolution, environment context, and declared requirements such as required environment variables. Its aggregatestatusispass,warn, orfail. Invalid, unknown, or misspelled adapter settings fail before diagnostics or runtime startup. A resolved descriptor without a settings schema accepts only an empty settings map.For a separate admission host, call public
inspect_adapter(config, descriptor)with matching catalog or canonical external metadata. The immutableAdapterCapabilityProfilehasadapter_id,descriptor_sha256,skills,mcp, andatiffields. It does not import harness SDKs or read task-local discovery paths. Missing metadata makes conservative claims and rejects requested optional features. Passexpected_descriptor_sha256=profile.descriptor_sha256to task-siderun()orstart_runtime()to reject descriptor drift before startup. For a registered workflow, also passtarget_descriptor=get_target_descriptor(config.workflow.target_id)from the matching catalog or canonical external metadata. The fingerprint then binds both normalized descriptors, including the target factory and settings schema; missing or mismatched metadata fails admission. Standalone fingerprints stay unchanged. Attached services need separate admission. Declared support is not runtime provenance or proof of an artifact.
Consume Results And Handle Errors
Every invocation that reaches the adapter boundary returns a normalized
RunResult, even when the harness invocation itself failed. Inspect the failure
fields before reading output:
result = await fabric.run(config, base_dir=base, input="Review the changes.")
if result.status == "succeeded":
use_output(result.output, result.artifacts, result.telemetry)
else:
handle_failure(result.status, result.error, result.events) # failed, cancelled, ...Treat
status == "succeeded"as the only success. Other terminal values (failed,cancelled) are unsuccessful, so branch onstatus, not onerror. Readstatus,error, andeventsbefore processingoutput.Capture
artifactsandtelemetryreferences as the returned evidence for platforms and evaluations. Store and logruntime_id,invocation_id, andrequest_idseparately as opaque strings.Catch
FabricErrorsubclasses for lifecycle failures that prevent a normalized result:FabricConfigError,FabricCapabilityError,FabricRuntimeError,FabricStateError, andFabricNativeUnavailableError.The consumer owns retries and failure policy; NeMo Fabric does not retry by default.
run(...)andasync withruntimes attempt cleanup automatically, so prefer them over manualstop()— but shutdown is not guaranteed:stop(), including the automatic call when anasync withblock exits, can raiseFabricRuntimeError. On a normal exit that error propagates; after an invocation error the cleanup failure is attached to the original exception. Be ready to handle a shutdown failure.
Refer to results-and-errors.md for the full
result-field and error inventory, and
sdk-api-inventory.md for when to use each
Fabric and Runtime method.
Test And Validate The Integration
Write focused integration tests that build the consumer's
FabricConfig, assertplan(...)selects the expected adapter and capabilities, and — where a harness and credentials are available — run one invocation and assert theRunResultstatus and evidence.plan(...)is credential-free — use it as the CI gate that validates adapter selection and capability routing without a model or secrets.doctor(...)also runs without calling a model, but it checks declared environment requirements (such as required API-key variables) and returnsfailwhen they are unset, so run it where the environment is provisioned and read its per-check results.Run the consumer project's own build and test commands. For a source checkout of NeMo Fabric,
just build-allrebuilds the native extension andjust test-pythonruns the Python suite.Confirm the typed config is passed directly to NeMo Fabric and no non-public imports were added.
Checklist
[ ] The consumer config object is translated directly into an in-memory
FabricConfig.[ ] Only public
nemo_fabricsymbols are imported; no_nativeor adapter internals.[ ] The consumer config is built in memory and passed directly to NeMo Fabric.
[ ] The right lifecycle is chosen:
run(...)for a single invocation,start_runtime(...)withasync withfor multi-turn,invoke_openai_stream(...)for descriptor-gated OpenAI chunks, orinvoke_stream(...)for raw NeMo Relay ATOF.[ ]
plan(...)anddoctor(...)validate adapter selection, capabilities, and environment before execution.[ ] Installation, adapter dependencies, and credentials are owned by the environment, not consumer code.
[ ]
RunResultstatus, error, and events are inspected before output; artifacts and telemetry are captured.[ ]
FabricErrorsubclasses are handled, including aFabricRuntimeErrorraised by shutdown; cleanup is delegated torun(...)orasync with(attempted, not guaranteed).[ ] Correlation IDs are stored and logged as opaque strings.
[ ] Focused integration tests pass and NeMo Fabric validation (
plan/doctor, tests) succeeds.
Related Documentation
Link to these canonical sources instead of duplicating them:
Resource usage and stats for collection controls, local and remote scope, sample quality, and repeatable code-review and Harbor examples. Harbor accepts the SDK configuration through
fabric_system_stats; omission uses before/after collection, and explicit null disables invocation stats.Generated API reference (public API index; the installed
nemo_fabrictype stubs are authoritative for exact signatures, fields, and defaults): client, runtime, native OpenAI streaming, Relay streaming, models, types, errorsCanonical in-memory config example: examples/code_review_agent
Platform and evaluation-harness integration: examples/harbor and nemo_fabric.integrations.harbor. Omit
fabric_model_providerto retain provider inference from the model name. Override it only when the selected adapter requires a different value; an OpenAI-compatible endpoint alone is not a reason to setopenai. For example, keep the inferrednvidiaprovider for Mini-SWE and OpenHands withnvidia/nemotron-3-ultra-550b-a55b: both adapters add the LiteLLMnvidia_nim/dispatch prefix. Overriding withopenaipasses this model ID unchanged to LiteLLM, which cannot infer its provider. Usefabric_model_settingsfor adapter-declaredmodels.default.settings; a model is required and its descriptor still validates those settings. Keep model credentials in Harbor's managed environment variables. Harbor constructs a typed config from explicit agent inputs and transports it inside a private transient run specification at the task-process boundary. Follow the code-review example for consumer integration code; Harbor's transport representation is an internal process-boundary contract.
Software Evidence
Inspect optional RunResult.execution for selected software inventories. Preserve full version values, status/reasons, source, origin and original observed_at when forwarding. Context refs are result-local; participants describe installation users. Use FabricConfig.provenance=ProvenanceConfig(enabled=False) before startup to disable collectors on host and guest. Explicit owner snapshots use typed ProvenanceConfig.reports through existing configuration dispatch; guests never inspect the caller installation. Old results can omit execution evidence. Unknown or incomplete reports are not proof of equal environments.
Files
- ATTRIBUTION.mdAdded by AutoGineer948 B
- BENCHMARK.md10.8 KiB
- LICENSELicence file added by AutoGineer11.2 KiB
- SKILL.md25.8 KiB
- evals/evals.json7.0 KiB
- references/config-mapping.md8.9 KiB
- references/results-and-errors.md10.1 KiB
- references/sdk-api-inventory.md7.9 KiB
- skill-card.md6.3 KiB
- skill.oms.sig5.2 KiB
references/config-mapping.md
<!-- SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. SPDX-License-Identifier: Apache-2.0 -->
Mapping Consumer Config To FabricConfig
Translate the consumer's own application, job, or deployment object into a typed
FabricConfig in memory. The consumer keeps owning its configuration model;
NVIDIA NeMo Fabric only receives the validated slice it needs.
Public Config Models
Import these from the top-level nemo_fabric package:
| Model | Purpose |
|---|---|
FabricConfig | Root config passed to every Fabric call. |
MetadataConfig | Agent name and description. |
HarnessConfig | adapter_id, resolution, and adapter-owned settings. |
WorkflowConfig | Registered target_id and immutable construction settings. |
DiscoveryConfig | Explicit local descriptor files and directories. |
ModelConfig | Provider, model, credentials (api_key_env), endpoint, and sampling. |
InstructionsConfig / InstructionConfig | Portable agent instructions with replace or append composition. |
RuntimeConfig | Input/output labels, artifact location, invocation timeout, and harness turn limit. |
EnvironmentConfig | Execution environment, workspace, and harness-visible variables. |
ToolsConfig / ToolDefinitionConfig | Named tool and tool-group definitions plus selection and blocking policy. |
McpConfig / McpServerConfig | MCP transport, network URL or stdio executable, separate stdio process arguments and environment, exposure, and optional per-server tool policy. |
SkillConfig | Skill directories. |
TelemetryConfig | Telemetry providers. |
RelayConfig and Relay*Config | NVIDIA NeMo Relay observability under the top-level relay block. |
The models reference
indexes the public config models. The generated pages omit constructor fields and
defaults, so read the installed nemo_fabric models (they ship py.typed) for
exact field names and defaults.
All bundled adapters except Hermes validate every model role against their
descriptor-owned model_schema. Provider identifiers outside the native Claude
and Codex anthropic and openai paths require both ModelConfig.base_url and
ModelConfig.api_key_env. Deep Agents keeps dynamic LangChain provider
selection. Undeclared ModelConfig.settings fail planning for each of these
adapters. models.<role>.top_p and models.<role>.max_tokens are normalized
fields. Deep Agents, Hermes, mini-SWE-agent, and Remote Agent declare native
mappings; other adapters fail planning when either field is configured.
Legacy adapter descriptors that instead accept either name through
extension_schemas.model receive it in AgentModelConfig.extensions. A
descriptor-advertised normalized mapping takes precedence over this compatibility
route.
Omit instructions.system to preserve the harness's native system instruction.
When present, InstructionConfig.mode defaults to replace; set it to
append only when the selected adapter descriptor advertises that mode.
Planning rejects unsupported modes before adapter startup.
Build And Shape
Construct the nested config directly, then adjust capabilities with helper methods that edit the typed config in place and return it:
add_skill_path(path)/remove_skill_path(path)add_mcp_server(name, *, transport, url, args, env, authentication, custom_headers, exposure, allowed_tools, blocked_tools, ...)/remove_mcp_server(name)enable_relay(...)for NVIDIA NeMo Relay observability in therelayblockToolsConfig(enabled=..., blocked=...)for tool policyadd_tool_definition(name, kind=..., ref=..., settings=...)/remove_tool_definition(name)block_tools(...)for additive deny policy
For a stdio MCP server, set url to the executable and pass each command-line
argument as a separate args element.
Use add_tool_definition(...) only when the selected adapter accepts
tools.definitions and publishes a tool_definition_schema.
Filtered per-server MCP configurations require adapter support for both mcp
and mcp.tool_filters. An unfiltered server with allowed_tools=None and an
empty or omitted blocked_tools list requires only mcp. allowed_tools=None
exposes every discovered tool, while allowed_tools=[] exposes none. NeMo Fabric
removes blocked_tools after applying the allowlist. Tool names in both lists
must be non-blank, and planning rejects a tool that appears in both lists.
MCP servers requiring authentication additionally require mcp.auth.oauth2 or
mcp.auth.service_account, matching the configured authentication type.
config = FabricConfig(
metadata=MetadataConfig(name=job.name),
harness=HarnessConfig(adapter_id=job.adapter_id, resolution="preinstalled"),
models={
"default": ModelConfig(
provider=job.provider,
model=job.model,
api_key_env=job.api_key_env,
base_url=job.base_url,
)
},
instructions=(
InstructionsConfig(
system=InstructionConfig(
content=job.system_instruction,
mode=job.system_instruction_mode,
),
)
if job.system_instruction is not None
else None
),
runtime=RuntimeConfig(
input_schema="chat",
output_schema="message",
timeout_seconds=job.timeout_seconds,
max_turns=job.max_turns,
),
)
config.add_skill_path(job.skill_dir)Variants Without Files
Create deployment or evaluation variants with deep copies and plain functions. Each copy resolves, plans, and runs independently.
def with_relay(base: FabricConfig) -> FabricConfig:
config = base.model_copy(deep=True)
config.enable_relay(output_dir="./artifacts/relay")
return configUse this function-and-copy pattern for every variant; keep all variation in ordinary Python.
For ATOF, use the current configuration and stream sink format in the
Python SDK guide.
Put RelayAtofFileSinkConfig and RelayAtofStreamSinkConfig instances in
RelayAtofConfig.sinks, and set RelayAtofConfig.enabled=True.
Relative Paths
If the config uses relative paths for skills, workspaces, or artifacts, pass
base_dir=... to plan(...), doctor(...), run(...), or
start_runtime(...). The base directory anchors those paths to the consumer's
package or job layout, so nothing depends on the process working directory.
Adapter-Owned And Caller-Owned Data
Use normalized fields for portable behavior: models, instructions, turn limit, runtime, environment, tools, skills, MCP, and telemetry.
Supply request context through
RunRequest.contextfor each invocation; request context is not part ofFabricConfig. To group invocations into one NeMo Relay session, setRunRequest.relay_session_rootto the same UUID string on each. Adapters that own an in-process Relay Agent scope root propagation at it. An unusable value falls back to per-request sessions without an error.Use
harness.settingsfor adapter-owned configuration declared by the selected descriptor. Each bundled adapter declares a closed settings schema. Executable paths, state directories, and Relay command discovery are runtime implementation details, not adapter settings. Adapter settings are not portable. Planning anddoctor(...)validate them against the schema embedded in the exact resolved adapter descriptor; a descriptor without a schema accepts only an empty settings map.Use
workflowto select a registered executable target. Setworkflow.target_id; the Adapter Target Descriptor selects the adapter and supplies its entry point.workflow.settingscontains only construction settings and is validated against that target'sspec.settings_schema. Do not use workflow settings for caller-owned annotations. Omitharnessfor a target-driven run. If both selectors are set,harness.adapter_idmust match the adapter selected by the target.Use
metadataand extension fields outsideworkflowfor caller-owned annotations NeMo Fabric carries but does not interpret. Configmetadatais not echoed intoRunResult.metadata: the name surfaces asRunResult.agent_name, and for caller-owned correlation on a specific invocation setRunRequest.request_id, which is returned asRunResult.request_id.
Stays Hidden Behind The Boundary
Do not surface these mechanics in the consumer-facing integration:
Replacing direct SDK calls with a private serialized transport (
to_mapping()is for inspection and private process boundaries; redact credentials, headers, metadata, and other sensitive or user-provided fields before logging, and never emit an unredacted mapping to logs).Importing
nemo_fabric._nativeor adapter-internal modules.Reimplementing harness start, invoke, or stop logic, or managing adapter threads, sessions, or processes.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs Python
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
- Instructions that use the network
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- NVIDIA Corporation and Affiliates
- Publisher
- NVIDIA (Official)
- Source
- NVIDIA/skills · skills/nemo-fabric-integrate · commit fce3cca
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE-APACHE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by NVIDIA Corporation and Affiliates or NVIDIA.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download nemo-fabric-integrate.zip