-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
74 lines (60 loc) · 2.4 KB
/
config.py
File metadata and controls
74 lines (60 loc) · 2.4 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
# Configuration settings for CrewAI Workshop - GROQ Only
import os
from dotenv import load_dotenv
load_dotenv()
# ============================================================================
# 🔑 GROQ Configuration (FREE - Recommended for workshops)
# ============================================================================
GROQ_CONFIG = {
'api_key': os.getenv('GROQ_API_KEY', '').strip().strip("'\""),
'model': os.getenv('GROQ_MODEL', 'llama-3.1-8b-instant'),
'temperature': float(os.getenv('GROQ_TEMPERATURE', 1)),
'max_tokens': int(os.getenv('GROQ_MAX_TOKENS', 1024)),
'top_p': float(os.getenv('GROQ_TOP_P', 1)),
'stream': os.getenv('GROQ_STREAM', 'true').lower() == 'true',
'stop': None,
}
# ============================================================================
# 🤖 Agent Configuration
# ============================================================================
AGENT_CONFIG = {
'verbose': True,
'max_iterations': 10,
'memory_enabled': True,
'temperature': 0.7
}
# ============================================================================
# 🎨 UI Configuration
# ============================================================================
UI_CONFIG = {
'menu_width': 60,
'separator_width': 80,
'show_timestamps': True,
'colored_output': True
}
# ============================================================================
# 📁 File Configuration
# ============================================================================
FILE_CONFIG = {
'default_save_location': '.',
'auto_backup': True,
'log_file': 'agent_system.log',
'max_log_size': 10485760 # 10MB
}
# ============================================================================
# 📊 Performance Configuration
# ============================================================================
PERFORMANCE_CONFIG = {
'enable_metrics': True,
'save_metrics': True,
'metrics_file': 'performance_metrics.json'
}
# ============================================================================
# 🎓 Workshop Configuration
# ============================================================================
WORKSHOP_CONFIG = {
'title': 'CrewAI Workshop - Agentic AI Learning',
'description': 'Learn multi-agent systems with free tools',
'free_tier_enabled': True,
'show_provider_info': True,
}