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>,
)
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected