-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
21 lines (16 loc) · 811 Bytes
/
config.py
File metadata and controls
21 lines (16 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# config.py
import os
from dotenv import load_dotenv
load_dotenv() # Load environment variables from .env file
# Groq Configuration
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
LLM_MODEL = "llama3-8b-8192" # Using Llama3 8B for all LLM tasks
if not GROQ_API_KEY:
print("Warning: GROQ_API_KEY not found in environment variables. The application will not be able to connect to Groq.")
# Target schema for JSON agent (example)
JSON_TARGET_SCHEMA = {
"required_fields": ["order_id", "customer_name", "total_amount", "items"],
"item_schema": {"name": "string", "quantity": "integer", "price": "float"}
}
# CRM-style format for Email agent (example)
EMAIL_CRM_FORMAT_KEYS = ["sender_email", "subject_line", "intent_category", "urgency_level", "summary", "action_items", "contact_person", "contact_phone"]