Skip to navigation

Struct Atif Step

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct AtifStep {Show 13 fields
    pub step_id: usize,
    pub source: String,
    pub message: Value,
    pub timestamp: Option<String>,
    pub model_name: Option<String>,
    pub reasoning_effort: Option<Value>,
    pub reasoning_content: Option<String>,
    pub tool_calls: Option<Vec<AtifToolCall>>,
    pub observation: Option<AtifObservation>,
    pub metrics: Option<AtifMetrics>,
    pub llm_call_count: Option<u64>,
    pub is_copied_context: Option<bool>,
    pub extra: Option<Value>,
}

A single step in an ATIF trajectory.

Fields

step_id: usize

1-based ordinal step ID.

source: String

Source of the step: "system", "user", or "agent".

message: Value

The message content (string or array of content parts).

timestamp: Option<String>

ISO 8601 timestamp.

model_name: Option<String>

LLM model name, if applicable.

reasoning_effort: Option<Value>

Qualitative or quantitative measure of reasoning effort.

reasoning_content: Option<String>

The agent’s explicit internal reasoning.

tool_calls: Option<Vec<AtifToolCall>>

Tool calls made by the agent in this step.

observation: Option<AtifObservation>

Observation (tool results) for this step.

metrics: Option<AtifMetrics>

Token usage and cost metrics.

llm_call_count: Option<u64>

Number of LLM calls represented by this step.

is_copied_context: Option<bool>

Whether this step was copied from a previous trajectory for context.

extra: Option<Value>

Extra metadata.

Trait Implementations

impl Clone for AtifStep

impl Clone for AtifStep

clone

fn clone(&self) -> AtifStep

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for AtifStep

impl Debug for AtifStep

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

impl<'de> Deserialize<'de> for AtifStep

impl<'de> Deserialize<'de> for AtifStep

deserialize

fn deserialize<__D>(
    __deserializer: __D,
) -> Result<AtifStep, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,

impl Serialize for AtifStep

impl Serialize for AtifStep

serialize

fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,