-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
58 lines (49 loc) · 2.55 KB
/
Copy path.env.example
File metadata and controls
58 lines (49 loc) · 2.55 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
# Memory Service Configuration Example
# Copy this file to .env and fill in your values
# ============================================================================
# Server Settings
# ============================================================================
HOST=0.0.0.0
PORT=8000
RELOAD=false # Set to true for development (auto-reload on code changes)
LOG_LEVEL=INFO
# ============================================================================
# Session Pool Settings
# ============================================================================
MAX_SESSIONS=1000 # Maximum sessions to keep in memory
SESSION_TTL_MINUTES=30 # Minutes before session is eligible for eviction
EVICTION_INTERVAL_SECONDS=60 # How often to check for stale sessions
# ============================================================================
# Azure OpenAI Settings
# ============================================================================
AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com/
AZURE_OPENAI_API_KEY=your_api_key_here
# API Version
AZURE_OPENAI_API_VERSION=2024-08-01-preview
# Model Deployments
AZURE_OPENAI_REASONING_MODEL=gpt-5.1
AZURE_OPENAI_PROCESSING_MODEL=gpt-5.1
AZURE_OPENAI_EMB_DEPLOYMENT=text-embedding-3-large
# ============================================================================
# Azure Cosmos DB
# ============================================================================
COSMOS_ENDPOINT=https://your-account.documents.azure.com:443/
COSMOS_KEY=your_cosmos_key_here # Optional if using AAD authentication
COSMOS_DB_NAME=agent_memory_db
COSMOS_INTERACTIONS_CONTAINER=interactions
COSMOS_SUMMARIES_CONTAINER=session_summaries
COSMOS_INSIGHTS_CONTAINER=insights
# Azure Cosmos DB Database Name (legacy naming)
AZURE_COSMOS_DATABASE_NAME=agent_memory_db # Alternative to COSMOS_DB_NAME
# ============================================================================
# Memory Service Settings
# ============================================================================
K_TURN_BUFFER=5 # Number of recent turns to keep in active memory
L_TURN_CHUNKS=10 # Number of turns per interaction chunk
M_SESSIONS_RECENT=5 # Number of recent sessions to include in context
REFLECTION_THRESHOLD_TURNS=15 # Minimum turns before triggering reflection
LONGTERM_SYNTHESIS_FREQUENCY=5 # Synthesize long-term insights every N sessions
# ============================================================================
# Memory Service URL (for clients)
# ============================================================================
MEMORY_SERVICE_URL=http://localhost:8000