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
  • Implementations
  • impl AtifExporter
  • new
  • Parameters
  • Returns
  • subscriber
  • Returns
  • export
  • Returns
  • Errors
  • Notes
  • try_export
  • clear
  • Returns
ReferenceAPIsRust Library Referencenemo-relayobservabilityatif

Struct Atif Exporter

||View as Markdown|
Previous

Struct Atif Ancestry

Next

Struct Atif Final Metrics

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

1pub struct AtifExporter { /* private fields */ }

Collects lifecycle events and exports them as ATIF trajectories.

Register this exporter as an event subscriber via AtifExporter::subscriber, then call AtifExporter::export to produce an AtifTrajectory.

Implementations

impl AtifExporter

impl AtifExporter

new

pub fn new(session_id: String, agent_info: AtifAgentInfo) -> Self

Create a new exporter with the given session metadata.

Parameters
  • session_id: Stable identifier for the trajectory being collected.
  • agent_info: Metadata describing the emitting agent.
Returns

A new AtifExporter with an empty in-memory event buffer.

subscriber

pub fn subscriber(&self) -> EventSubscriberFn

Return an event subscriber function that records NeMo Relay events.

The returned callback can be registered with register_subscriber.

Returns

An EventSubscriberFn that appends each observed event to this exporter’s internal buffer.

export

pub fn export(&self) -> Result<AtifTrajectory>

Export the collected event history as an AtifTrajectory.

Returns

An AtifTrajectory synthesized from the events observed so far.

Errors

Returns an error if queued subscriber delivery cannot be flushed before the trajectory is cloned.

Notes

Exporting does not clear the buffered events. Call AtifExporter::clear when you need to reset the exporter between trajectories.

try_export

pub fn try_export(&self) -> Result<AtifTrajectory>

Try to export the collected event history as an AtifTrajectory.

This is equivalent to AtifExporter::export and is retained for callers that prefer an explicitly fallible method name.

clear

pub fn clear(&self)

Clear all collected events from the internal buffer.

Returns

().