safety comment on TickTTL
This commit is contained in:
parent
ad2feaf810
commit
adc291eb29
1 changed files with 3 additions and 0 deletions
|
|
@ -1302,6 +1302,9 @@ func (al *AgentLoop) runLLMIteration(
|
||||||
// Tick down TTL of discovered tools after processing tool results.
|
// Tick down TTL of discovered tools after processing tool results.
|
||||||
// Only reached when tool calls were made (the loop continues);
|
// Only reached when tool calls were made (the loop continues);
|
||||||
// the break on no-tool-call responses skips this.
|
// 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()
|
agent.Tools.TickTTL()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue