Move Firecrawl API key from top-level config into Agents.Tools
Firecrawl is a tool used by agents (tracker mapping, third-party assessor), so its configuration belongs under AgentsConfig rather than as a standalone Config field. Adds AgentToolsConfig to hold agent tool credentials and updates all config propagation consumers. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -52,7 +52,7 @@ func (impl *Implm) buildThirdPartyAssessor(
|
||||
Model: agentCfg.ModelName,
|
||||
MaxTokens: maxTokens,
|
||||
ChromeAddr: impl.cfg.ChromeDPAddr,
|
||||
FirecrawlAPIKey: impl.cfg.Firecrawl.APIKey,
|
||||
FirecrawlAPIKey: impl.cfg.Agents.Tools.FirecrawlAPIKey,
|
||||
Logger: l.Named("third-party-assessor"),
|
||||
}), nil
|
||||
}
|
||||
|
||||
@@ -49,6 +49,6 @@ func (impl *Implm) buildTrackerMappingConfig(
|
||||
return cookiebanner.TrackerMappingConfig{
|
||||
LLMClient: llmClient,
|
||||
Model: agentCfg.ModelName,
|
||||
FirecrawlAPIKey: impl.cfg.Firecrawl.APIKey,
|
||||
FirecrawlAPIKey: impl.cfg.Agents.Tools.FirecrawlAPIKey,
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user