-
Notifications
You must be signed in to change notification settings - Fork 354
Expand file tree
/
Copy pathconfig-example.yaml
More file actions
60 lines (54 loc) · 2.78 KB
/
config-example.yaml
File metadata and controls
60 lines (54 loc) · 2.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
# Mini Agent Configuration Example
#
# Configuration File Locations (in priority order):
# 1) mini_agent/config/config.yaml - Development mode (current directory)
# 2) ~/.mini-agent/config/config.yaml - User config directory
# 3) <package>/mini_agent/config/config.yaml - Package installation directory
#
# To use this config:
# - Copy this file to one of the above locations as config.yaml
# - Fill in your API key and customize settings as needed
# - All config files (config.yaml, mcp.json, system_prompt.md) are in the same directory
# ===== LLM Configuration =====
# MiniMax API Configuration
# MiniMax provides both global and China platforms:
# - Global: https://platform.minimax.io -> api_base: https://api.minimax.io
# - China: https://platform.minimaxi.com -> api_base: https://api.minimaxi.com
# Please choose based on your network environment and get API key from corresponding platform
api_key: "YOUR_API_KEY_HERE" # Replace with your MiniMax API Key
api_base: "https://api.minimax.io" # Global users (default)
# api_base: "https://api.minimaxi.com" # China users
model: "MiniMax-M2.5"
# LLM provider: "anthropic" or "openai"
# For MiniMax API, the suffix (/anthropic or /v1) is auto-appended based on provider.
# For third-party APIs (e.g., https://api.siliconflow.cn/v1), api_base is used as-is.
provider: "anthropic" # Default: anthropic
# ===== Retry Configuration =====
retry:
enabled: true # Enable retry mechanism
max_retries: 3 # Maximum number of retries
initial_delay: 1.0 # Initial delay time (seconds)
max_delay: 60.0 # Maximum delay time (seconds)
exponential_base: 2.0 # Exponential backoff base (delay = initial_delay * base^attempt)
# ===== Agent Configuration =====
max_steps: 100 # Maximum execution steps
workspace_dir: "./workspace" # Working directory
system_prompt_path: "system_prompt.md" # System prompt file (same config directory)
# ===== Tools Configuration =====
tools:
# Basic tool switches
enable_file_tools: true # File read/write/edit tools (ReadTool, WriteTool, EditTool)
enable_bash: true # Bash command execution tool
enable_note: true # Session note tool (SessionNoteTool)
# Claude Skills
enable_skills: true # Enable Skills
skills_dir: "./skills" # Skills directory path
# MCP Tools
enable_mcp: true # Enable MCP tools
mcp_config_path: "mcp.json" # MCP configuration file (same config directory)
# Note: API Keys for MCP tools are configured in mcp.json
# MCP timeout configuration (prevents hanging on network issues)
mcp:
connect_timeout: 10.0 # Connection timeout in seconds (default: 10)
execute_timeout: 60.0 # Tool execution timeout in seconds (default: 60)
sse_read_timeout: 120.0 # SSE read timeout in seconds (default: 120)