- Removed legacy agent profile settings from the .env.example and README, streamlining the configuration process. - Introduced a new local YAML configuration adapter for assistant settings, allowing for easier management of assistant profiles. - Updated backend integration documentation to clarify the behavior of assistant config sourcing based on backend URL settings. - Adjusted various service implementations to directly utilize API keys from the new configuration structure. - Enhanced test coverage for the new local YAML adapter and its integration with backend services.
50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
# -----------------------------------------------------------------------------
|
|
# Engine .env example (safe template)
|
|
# Notes:
|
|
# - Never commit real API keys.
|
|
# - Start with defaults below, then tune from logs.
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Server
|
|
HOST=0.0.0.0
|
|
PORT=8000
|
|
# EXTERNAL_IP=1.2.3.4
|
|
|
|
# Backend bridge (optional)
|
|
# BACKEND_MODE=auto|http|disabled
|
|
BACKEND_MODE=auto
|
|
BACKEND_URL=http://127.0.0.1:8100
|
|
BACKEND_TIMEOUT_SEC=10
|
|
HISTORY_ENABLED=true
|
|
HISTORY_DEFAULT_USER_ID=1
|
|
HISTORY_QUEUE_MAX_SIZE=256
|
|
HISTORY_RETRY_MAX_ATTEMPTS=2
|
|
HISTORY_RETRY_BACKOFF_SEC=0.2
|
|
HISTORY_FINALIZE_DRAIN_TIMEOUT_SEC=1.5
|
|
|
|
# Audio
|
|
SAMPLE_RATE=16000
|
|
# 20ms is recommended for VAD stability and latency.
|
|
# 100ms works but usually worsens start-of-speech accuracy.
|
|
CHUNK_SIZE_MS=20
|
|
DEFAULT_CODEC=pcm
|
|
MAX_AUDIO_BUFFER_SECONDS=30
|
|
|
|
# Local assistant/agent YAML directory. In local mode the runtime resolves:
|
|
# ASSISTANT_LOCAL_CONFIG_DIR/<assistant_id>.yaml
|
|
ASSISTANT_LOCAL_CONFIG_DIR=engine/config/agents
|
|
|
|
# Logging
|
|
LOG_LEVEL=INFO
|
|
# json is better for production/observability; text is easier locally.
|
|
LOG_FORMAT=json
|
|
|
|
# WebSocket behavior
|
|
INACTIVITY_TIMEOUT_SEC=60
|
|
HEARTBEAT_INTERVAL_SEC=50
|
|
WS_PROTOCOL_VERSION=v1
|
|
|
|
# CORS / ICE (JSON strings)
|
|
CORS_ORIGINS=["http://localhost:3000","http://localhost:8080"]
|
|
ICE_SERVERS=[{"urls":"stun:stun.l.google.com:19302"}]
|