For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • About NVIDIA NeMo Relay
    • Overview
    • Architecture
    • Ecosystem
    • Concepts
    • Release Notes
  • Getting Started
    • Agent Runtime Primer
    • Prerequisites
    • Installation
    • Configuration / Setup
    • Quick Start
  • NVIDIA NeMo Relay CLI
    • About
    • Basic Usage
    • Claude Code
    • Codex
    • Cursor
    • Hermes Agent
  • Supported Integrations
    • About
    • OpenClaw Plugin Guide
    • LangChain Integration Guide
    • LangGraph Integration Guide
    • Deep Agents Integration Guide
  • Instrument Applications
    • About
    • Adding Scopes and Marks
    • Instrument a Tool Call
    • Instrument an LLM Call
    • Add Middleware
    • Code Examples
  • Observability Plugin
    • About
    • Configuration
    • Agent Trajectory Interchange Format (ATIF)
    • Agent Trajectory Observability Format (ATOF)
    • OpenTelemetry
    • OpenInference
  • Adaptive Plugin
    • About
    • Configuration
    • Adaptive Cache Governor (ACG)
    • Adaptive Hints
  • NeMo Guardrails Plugin
    • About
    • Configuration
  • Integrate into Frameworks
    • About
    • Adding Scopes
    • Wrap Tool Calls
    • Wrap LLM Calls
    • Handle Non-Serializable Data
    • Using Codecs
    • Provider Codecs
    • Provider Response Codecs
    • Code Examples
  • Build Plugins
    • About
    • Define a Plugin
    • Validate Plugin Configuration
    • Plugin Configuration Files
    • Register Plugin Behavior
    • Design Plugin Configuration
    • NeMo Guardrails Example Plugin
    • Code Examples
  • Contribute
    • About
    • Development Setup
    • Workflow and Reviews
    • Testing and Documentation
  • Reference
    • APIs
      • Python Library Reference
      • Node.js Library Reference
      • Rust Library Reference
        • nemo-relay
          • api
          • codec
          • config_editor
          • error
          • json
          • observability
            • atif
              • AtifAgentInfo
              • AtifAncestry
              • AtifExporter
              • AtifFinalMetrics
              • AtifInvocationInfo
              • AtifMetrics
              • AtifObservation
              • AtifObservationResult
              • AtifStep
              • AtifStepExtra
              • AtifSubagentTrajectoryRef
              • AtifToolCall
              • AtifTrajectory
              • ATIF_SCHEMA_VERSION
            • atof
            • openinference
            • otel
            • plugin_component
          • plugin
          • plugins
          • stream
          • editor_config
        • nemo-relay-adaptive
        • nemo-relay-ffi
    • Performance
  • Resources
    • Support and FAQs
    • Glossary
    • Troubleshooting Guide
    • Community
    • Legal
NVIDIANVIDIA
Developer-friendly docs for your API
Privacy Policy | Your Privacy Choices | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2026, NVIDIA Corporation.

LogoLogo
On this page
  • Overview
  • Event-to-Step Mapping
  • Structs
  • Constants
ReferenceAPIsRust Library Referencenemo-relayobservability

Module atif

||View as Markdown|
Previous

Module observability

Next

Struct Atif Agent Info

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

Agent Trajectory Interchange Format (ATIF) exporter.

This module provides types and an exporter that collects lifecycle events from the NeMo Relay runtime and converts them into ATIF trajectories conforming to the ATIF v1.7 schema.

Overview

The AtifExporter registers as an event subscriber, collects all events, and can export them as an AtifTrajectory via AtifExporter::export.

Event-to-Step Mapping

The core conversion from NeMo Relay events to ATIF steps follows these rules:

  • NeMo Relay Event | ATIF Step | Notes
  • LLM Start | user step | Messages extracted from LlmRequest
  • LLM End | agent step | Response content, tool_calls promoted
  • Tool Start | (skipped) | tool_calls come from LLM End instead
  • Tool End | agent observation | Correlated by source_call_id
  • Mark (with data) | system step | Custom event data preserved
  • Scope Start/End | (skipped) | Structural events, not trajectory

The exporter serializes the full collected event stream into a single ATIF trajectory.

Structs

  • AtifAgentInfo: Information about the agent that produced the trajectory.
  • AtifAncestry: Lineage node identifying a callable within an ATIF step.
  • AtifExporter: Collects lifecycle events and exports them as ATIF trajectories.
  • AtifFinalMetrics: Aggregate statistics for the entire trajectory (ATIF final_metrics).
  • AtifInvocationInfo: Invocation timing and correlation metadata for one execution occurrence.
  • AtifMetrics: Token usage and cost metrics for a single step.
  • AtifObservation: Observation results from tool execution.
  • AtifObservationResult: A single observation result from a tool call.
  • AtifStep: A single step in an ATIF trajectory.
  • AtifStepExtra: Lineage payload serialized into ATIF Step.extra.
  • AtifSubagentTrajectoryRef: Reference to a delegated subagent trajectory.
  • AtifToolCall: A tool call made by the agent.
  • AtifTrajectory: A complete ATIF trajectory.

Constants

  • ATIF_SCHEMA_VERSION: The ATIF schema version string embedded in all exported trajectories.