safety comment on TickTTL

This commit is contained in:
afjcjsbx 2026-03-08 16:18:19 +01:00
parent ad2feaf810
commit adc291eb29

View file

@ -1302,6 +1302,9 @@ func (al *AgentLoop) runLLMIteration(
// Tick down TTL of discovered tools after processing tool results.
// Only reached when tool calls were made (the loop continues);
// the break on no-tool-call responses skips this.
// NOTE: This is safe because processMessage is sequential per agent.
// If per-agent concurrency is added, TTL consistency between
// ToProviderDefs and Get must be re-evaluated.
agent.Tools.TickTTL()
}