Models
module nemo_fabric.models
Pydantic SDK models for NVIDIA NeMo Fabric configuration and requests.
The Rust core remains the source of truth for persisted schema snapshots. These models provide the Python SDK’s typed authoring surface and intentionally keep extension fields so consumers can carry adapter- or application-owned data without waiting for a schema release.
class FabricBaseModel
Base class for SDK-facing Pydantic models.
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class MetadataConfig
Human-readable agent identity.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class HarnessConfig
Harness adapter selection plus adapter-owned settings.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class InstructionConfig
One portable instruction value.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class InstructionsConfig
Harness-neutral agent instructions.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class RuntimeConfig
Invocation runtime contract.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class EnvironmentConfig
Execution environment configuration supplied by the consumer.
provider selects the environment implementation. workspace is the path visible to the harness, while artifacts is the provider-specific output location. settings configures the selected provider; connection describes how NeMo Fabric reaches an existing environment; and metadata carries consumer-owned values that NeMo Fabric does not interpret. ownership identifies who tears the environment down, and control_location identifies whether NeMo Fabric control code runs inside or outside it.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class ModelConfig
Configuration for one model role.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class SkillConfig
Skill capability configuration.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
method add_path
Add a skill path if absent.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method remove_path
Remove a skill path if present.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class McpServerConfig
MCP server configuration.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class McpConfig
MCP capability configuration.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
method add_server
Add or replace a named MCP server.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method remove_server
Remove a named MCP server if present.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class RelayConfigPolicy
NVIDIA NeMo Relay config validation policy.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class RelayAtofFileSinkConfig
NeMo Relay ATOF file sink configuration.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class RelayAtofStreamSinkConfig
NeMo Relay ATOF stream sink configuration.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class RelayAtofConfig
NeMo Relay ATOF export configuration.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class RelayS3StorageConfig
NeMo Relay ATIF S3 storage configuration.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class RelayHttpStorageConfig
NeMo Relay ATIF HTTP storage configuration.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class RelayAtifConfig
NeMo Relay ATIF export configuration.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class RelayOtlpConfig
NeMo Relay OTLP export configuration for OpenTelemetry/OpenInference.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class RelayObservabilityConfig
NeMo Relay observability component configuration.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class RelayComponentConfig
Generic NeMo Relay plugin component configuration.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class RelayConfig
First-class NeMo Relay integration configuration.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class TelemetryProviderConfig
Provider-specific telemetry configuration.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class TelemetryConfig
Telemetry configuration.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
method enable_native
Let the selected adapter handle telemetry natively.
method enable_relay
Enable NeMo Relay telemetry for subsequently started runtimes.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method remove_provider
Remove a configured telemetry provider.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class ToolsConfig
Harness-neutral tool capability configuration.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached JSON-compatible mapping for Rust/core calls.
class FabricConfig
SDK-facing typed NeMo Fabric agent configuration.
NeMo Fabric-owned fields apply uniformly. Adapter-translated fields are checked against the selected descriptor; refer to the normalized configuration compatibility table.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
method add_mcp_server
Add or replace a named MCP server and return this config.
method add_skill_path
Add a skill path and return this config.
method block_tools
Block adapter-native tool names and return this config.
method enable_relay
Enable NeMo Relay telemetry and return this config.
classmethod from_mapping
Validate the public agent config mapping shape.
method remove_mcp_server
Remove a named MCP server and return this config.
method remove_skill_path
Remove a skill path and return this config.
method to_mapping
Return a detached mapping matching the Rust FabricConfig schema.
class RunRequest
One validated NeMo Fabric invocation request.
Fields
The model defines the following fields:
property extra_fields
Return fields preserved by the extension point for this model.
property model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None if config.extra is not set to "allow".
property model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
classmethod from_mapping
Validate a mapping using this Pydantic model.
method to_mapping
Return a detached request mapping for the Rust runtime.
This file was automatically generated via lazydocs.