feat(agent): support customizable LLM call timeout and add docker-compose mapping

This commit is contained in:
AndyYang
2026-04-04 16:55:45 +08:00
committed by lyingbug
parent f63c9f6dbe
commit d5ecc150e0
5 changed files with 39 additions and 0 deletions
@@ -219,6 +219,12 @@ func (s *sessionService) buildAgentConfig(
MCPServices: customAgent.Config.MCPServices,
Thinking: customAgent.Config.Thinking,
RetrieveKBOnlyWhenMentioned: customAgent.Config.RetrieveKBOnlyWhenMentioned,
LLMCallTimeout: customAgent.Config.LLMCallTimeout,
}
// Falls back to global configuration if no specific timeout is set for the agent.
if agentConfig.LLMCallTimeout == 0 && s.cfg.Agent != nil && s.cfg.Agent.LLMCallTimeout > 0 {
agentConfig.LLMCallTimeout = s.cfg.Agent.LLMCallTimeout
}
// Configure skills based on CustomAgentConfig