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
+2
View File
@@ -91,6 +91,8 @@ type CustomAgentConfig struct {
// ===== Agent Mode Settings =====
// Maximum iterations for ReAct loop (only for agent type)
MaxIterations int `yaml:"max_iterations" json:"max_iterations"`
// Timeout for a single LLM call in seconds (0 = use global default)
LLMCallTimeout int `yaml:"llm_call_timeout" json:"llm_call_timeout,omitempty"`
// Allowed tools (only for agent type)
AllowedTools []string `yaml:"allowed_tools" json:"allowed_tools"`
// MCP service selection mode: "all" = all enabled MCP services, "selected" = specific services, "none" = no MCP