Raise tracker agent max turns to avoid errors
The tracker-mapping and common-pattern enrichment agents ran with 4 and 3 max turns. Those budgets are smaller than the tool-call rounds their prompts authorize (two/one DB searches plus up to three web searches) plus the forced structured-output synthesis turn, so the run loop tripped MaxTurnsExceededError before it could emit JSON. Raise the budgets to 10 across every layer that drives them: the bootstrap env-var defaults, the Helm chart values and production example, and the in-code fallback. Update the bootstrap test defaults to match. Revert the prompt instructions that told the model to reserve a turn for its final answer; the model cannot reliably count its remaining turns, so the fix belongs in the turn budget rather than the prompt text. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -225,12 +225,12 @@ func TestBuilder_Build_Defaults(t *testing.T) {
|
||||
assert.Equal(t, 3, cfg.Probod.TrackerMappingWorker.MaxConcurrency)
|
||||
assert.Equal(t, 600, cfg.Probod.TrackerMappingWorker.StaleAfter)
|
||||
assert.Equal(t, 45, cfg.Probod.TrackerMappingWorker.AgentTimeout)
|
||||
assert.Equal(t, 4, cfg.Probod.TrackerMappingWorker.AgentMaxTurns)
|
||||
assert.Equal(t, 10, cfg.Probod.TrackerMappingWorker.AgentMaxTurns)
|
||||
assert.Equal(t, 10, cfg.Probod.CommonPatternEnrichmentWorker.Interval)
|
||||
assert.Equal(t, 2, cfg.Probod.CommonPatternEnrichmentWorker.MaxConcurrency)
|
||||
assert.Equal(t, 600, cfg.Probod.CommonPatternEnrichmentWorker.StaleAfter)
|
||||
assert.Equal(t, 45, cfg.Probod.CommonPatternEnrichmentWorker.AgentTimeout)
|
||||
assert.Equal(t, 3, cfg.Probod.CommonPatternEnrichmentWorker.AgentMaxTurns)
|
||||
assert.Equal(t, 10, cfg.Probod.CommonPatternEnrichmentWorker.AgentMaxTurns)
|
||||
|
||||
// Custom domains config
|
||||
assert.Equal(t, 3600, cfg.Probod.CustomDomains.RenewalInterval)
|
||||
|
||||
Reference in New Issue
Block a user