MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / with_usage

Method with_usage

atomic-agent/src/transcript/storage.rs:110–120  ·  view source on GitHub ↗

Attach the turn's LLM usage, as the agent's turn-end hook reported it: the turn's token cost and its step count.

(
        mut self,
        input_tokens: Option<u64>,
        output_tokens: Option<u64>,
        step_count: Option<u32>,
    )

Source from the content-addressed store, hash-verified

108 /// Attach the turn's LLM usage, as the agent's turn-end hook reported
109 /// it: the turn's token cost and its step count.
110 pub fn with_usage(
111 mut self,
112 input_tokens: Option<u64>,
113 output_tokens: Option<u64>,
114 step_count: Option<u32>,
115 ) -> Self {
116 self.input_tokens = input_tokens;
117 self.output_tokens = output_tokens;
118 self.step_count = step_count;
119 self
120 }
121
122 /// Set the reasoning summary.
123 pub fn with_reasoning(mut self, reasoning: TurnReasoning) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected