-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.py
More file actions
59 lines (49 loc) · 2.17 KB
/
default.py
File metadata and controls
59 lines (49 loc) · 2.17 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
from typing import List, Dict, Any
class DefaultConfig:
"""Default configuration for CI Copilot"""
# LLM Configuration
LLM_PROVIDER: str = "openai"
LLM_MODEL: str = "gpt-4o-mini"
LLM_TEMPERATURE: float = 0.0
LLM_MAX_TOKENS: int = 15000
# Higher LLM Configuration (for complex reasoning tasks)
LLM_HIGHER_PROVIDER: str = "openai"
LLM_HIGHER_MODEL: str = "gpt-5-mini"
LLM_HIGHER_TEMPERATURE: float = 0.0
LLM_HIGHER_MAX_TOKENS: int = 15000
LLM_DEEPAGENT_PROVIDER: str = "openai"
LLM_DEEPAGENT_MODEL: str = "o4-mini"
LLM_DEEPAGENT_TEMPERATURE: float = 1
LLM_DEEPAGENT_MAX_TOKENS: int = 25000
# Logging Configuration
LOG_LEVEL: str = "INFO"
LOG_FILE: str = "ci_copilot.log"
LOG_FORMAT: str = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
LOG_DATE_FORMAT: str = "%Y-%m-%d %H:%M:%S"
LOG_TO_CONSOLE: bool = True
LOG_TO_FILE: bool = True
LOG_STRUCTURED_JSON: bool = False
# A2A Server Configuration
A2A_HOST: str = "localhost"
A2A_PORT: int = 10103
A2A_AGENT_CARD: str = "ci_copilot/card/ci_copilot.json"
# LangGraph Configuration
RECURSION_LIMIT: int = 50 # Maximum recursion depth for agent workflows (default: 25, increased for multi-phase workflows)
# MCP (Model Context Protocol) Server Configuration
# Format: List of dicts with keys: name, host, port, transport, disabled
# Example: [{"name": "github_mcp", "host": "localhost", "port": 10200, "transport": "sse", "disabled": false}]
MCP_SERVERS: List[Dict[str, Any]] = [
{
"name": "github_mcp",
"url": "https://api.githubcopilot.com/mcp/",
"transport": "http",
"disabled": False,
"headers": {},
"auth_token_env_var": "GITHUB_PERSONAL_ACCESS_TOKEN"
}
] # JSON string, empty by default
# Individual MCP server defaults (can be overridden via MCP_SERVERS)
MCP_DEFAULT_HOST: str = "localhost"
MCP_DEFAULT_TRANSPORT: str = "sse"
MCP_TIMEOUT_TOTAL: float = 1200.0 # 20 minutes total timeout (increased for large file scans)
MCP_TIMEOUT_CONNECT: float = 300.0 # 5 minutes connect timeout