-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathconfig.yaml.example
More file actions
117 lines (109 loc) · 3.78 KB
/
config.yaml.example
File metadata and controls
117 lines (109 loc) · 3.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# SGR Deep Research - Configuration for research agents
# Copy this file and fill in your API keys
# LLM Configuration
llm:
api_key: "your-openai-api-key-here" # Your OpenAI API key
base_url: "https://api.openai.com/v1" # API base URL
model: "gpt-4.1-mini" # Model name
max_tokens: 8000 # Max output tokens
temperature: 0.4 # Temperature (0.0-1.0)
# proxy: "socks5://127.0.0.1:1081" # Optional proxy (socks5:// or http://)
# Execution Settings
execution:
max_clarifications: 3 # Max clarification requests
max_iterations: 10 # Max agent iterations
mcp_context_limit: 15000 # Max context length from MCP server response
streaming_generator: "openai" # OpenAI SSE format; use "open_webui" for Open WebUI <details> format
logs_dir: "logs" # Directory for saving agent execution logs
reports_dir: "reports" # Directory for saving research reports
# MCP (Model Context Protocol) Configuration
mcp:
mcpServers:
deepwiki:
url: "https://mcp.deepwiki.com/mcp"
# Tool Definitions
tools:
# Core tools (base_class defaults to sgr_agent_core.tools.*)
# Search tools: configure Tavily API key and search limits per tool
web_search_tool:
engine: "tavily" # Search engine: "tavily" (default), "brave", or "perplexity"
tavily_api_key: "your-tavily-api-key-here" # Tavily API key (get at tavily.com)
tavily_api_base_url: "https://api.tavily.com" # Tavily API URL
max_searches: 4 # Max search operations
max_results: 10 # Max results in search query
extract_page_content_tool:
tavily_api_key: "your-tavily-api-key-here" # Same Tavily API key
tavily_api_base_url: "https://api.tavily.com"
content_limit: 1500 # Content char limit per source
create_report_tool:
# base_class defaults to sgr_agent_core.tools.CreateReportTool
final_answer_tool:
# base_class defaults to sgr_agent_core.tools.FinalAnswerTool
clarification_tool:
# base_class defaults to sgr_agent_core.tools.ClarificationTool
generate_plan_tool:
# base_class defaults to sgr_agent_core.tools.GeneratePlanTool
adapt_plan_tool:
# base_class defaults to sgr_agent_core.tools.AdaptPlanTool
reasoning_tool:
# base_class defaults to sgr_agent_core.tools.ReasoningTool
answer_tool:
# base_class defaults to sgr_agent_core.tools.AnswerTool
# Agent Definitions
agents:
# SGR Agent for research
sgr_agent:
base_class: "agents.ResearchSGRAgent"
llm:
model: "gpt-4.1-mini"
temperature: 0.4
tools:
- "web_search_tool"
- "extract_page_content_tool"
- "create_report_tool"
- "final_answer_tool"
- "clarification_tool"
- "generate_plan_tool"
- "adapt_plan_tool"
# Tool Calling Agent for research
tool_calling_agent:
base_class: "agents.ResearchToolCallingAgent"
llm:
model: "gpt-4.1-mini"
temperature: 0.4
tools:
- "web_search_tool"
- "extract_page_content_tool"
- "create_report_tool"
- "final_answer_tool"
- "clarification_tool"
- "generate_plan_tool"
- "adapt_plan_tool"
# SGR Tool Calling Agent for research
sgr_tool_calling_agent:
base_class: "agents.ResearchSGRToolCallingAgent"
llm:
model: "gpt-4.1-mini"
temperature: 0.4
tools:
- "web_search_tool"
- "extract_page_content_tool"
- "create_report_tool"
- "final_answer_tool"
- "clarification_tool"
- "reasoning_tool"
- "generate_plan_tool"
- "adapt_plan_tool"
# Dialog Agent for research (intermediate results, long conversations)
dialog_agent:
base_class: "agents.ResearchDialogAgent"
llm:
model: "gpt-4.1-mini"
temperature: 0.4
tools:
- "web_search_tool"
- "extract_page_content_tool"
- "reasoning_tool"
- "answer_tool"
- "generate_plan_tool"
- "adapt_plan_tool"