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:
@@ -251,14 +251,14 @@ func (b *Builder) Build() (*probodconfig.FullConfig, error) {
|
||||
MaxConcurrency: b.getEnvIntOrDefault("TRACKER_MAPPING_MAX_CONCURRENCY", 3),
|
||||
StaleAfter: b.getEnvIntOrDefault("TRACKER_MAPPING_STALE_AFTER", 600),
|
||||
AgentTimeout: b.getEnvIntOrDefault("TRACKER_MAPPING_AGENT_TIMEOUT", 45),
|
||||
AgentMaxTurns: b.getEnvIntOrDefault("TRACKER_MAPPING_AGENT_MAX_TURNS", 4),
|
||||
AgentMaxTurns: b.getEnvIntOrDefault("TRACKER_MAPPING_AGENT_MAX_TURNS", 10),
|
||||
},
|
||||
CommonPatternEnrichmentWorker: probodconfig.CommonPatternEnrichmentWorkerConfig{
|
||||
Interval: b.getEnvIntOrDefault("COMMON_PATTERN_ENRICHMENT_INTERVAL", 10),
|
||||
MaxConcurrency: b.getEnvIntOrDefault("COMMON_PATTERN_ENRICHMENT_MAX_CONCURRENCY", 2),
|
||||
StaleAfter: b.getEnvIntOrDefault("COMMON_PATTERN_ENRICHMENT_STALE_AFTER", 600),
|
||||
AgentTimeout: b.getEnvIntOrDefault("COMMON_PATTERN_ENRICHMENT_AGENT_TIMEOUT", 45),
|
||||
AgentMaxTurns: b.getEnvIntOrDefault("COMMON_PATTERN_ENRICHMENT_AGENT_MAX_TURNS", 3),
|
||||
AgentMaxTurns: b.getEnvIntOrDefault("COMMON_PATTERN_ENRICHMENT_AGENT_MAX_TURNS", 10),
|
||||
},
|
||||
Branding: b.getEnvBoolOrDefault("BRANDING", true),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user