Method
emit_turn_start
(&self, turn: usize, event_tx: &Option<mpsc::Sender<AgentEvent>>)
Source from the content-addressed store, hash-verified
| 98 | } |
| 99 | |
| 100 | async fn emit_turn_start(&self, turn: usize, event_tx: &Option<mpsc::Sender<AgentEvent>>) { |
| 101 | if let Some(tx) = event_tx { |
| 102 | tx.send(AgentEvent::TurnStart { turn }).await.ok(); |
| 103 | } |
| 104 | |
| 105 | tracing::info!( |
| 106 | turn = turn, |
| 107 | max_turns = self.config.max_tool_rounds, |
| 108 | "Agent turn started" |
| 109 | ); |
| 110 | } |
| 111 | |
| 112 | async fn call_llm_with_circuit_breaker( |
| 113 | &self, |
Tested by
no test coverage detected