# Agent Development Environment Configuration File Example
# Copy this file to config.env and modify configuration values according to your actual environment
# Note: config.env file contains sensitive information and should not be committed to version control

# Python Environment Configuration
PYTHONUNBUFFERED=1

# Runtime Environment Configuration
RUN_ENVIRON=dev
USE_POLARIS=false

# Service Configuration
# Service identification and network settings for the Agent service
SERVICE_NAME=Agent
SERVICE_SUB=sag
SERVICE_LOCATION=hf
SERVICE_HOST=0.0.0.0
SERVICE_PORT=17870
SERVICE_WORKERS=1
SERVICE_RELOAD=false
SERVICE_WS_PING_INTERVAL=false
SERVICE_WS_PING_TIMEOUT=false

# When USE_POLARIS is false, the following configurations take effect

# Redis Cache Settings
# Redis cluster configuration for caching, session management, and real-time data
# Only one cluster address and stand-alone address can be configured, and the cluster address has high priority.
# Cluster address
REDIS_CLUSTER_ADDR=YOUR_REDIS_CLUSTER_ADDR1,YOUR_REDIS_CLUSTER_ADDR2
# Stand-alone address
#REDIS_ADDR=YOUR_REDIS_ADDR
REDIS_PASSWORD=YOUR_REDIS_PASSWORD
# Cache expiration time in seconds (1 hour = 3600 seconds)
REDIS_EXPIRE=3600

# MySQL Configuration
MYSQL_HOST=YOUR_MYSQL_HOST
MYSQL_PORT=YOUR_MYSQL_PORT
MYSQL_USER=YOUR_MYSQL_USER
MYSQL_PASSWORD=YOUR_MYSQL_PASSWORD
MYSQL_DB=YOUR_DATABASE_NAME

# Metrics Configuration
OTLP_ENDPOINT=YOUR_METRIC_ENDPOINT:4317
# Enable/disable telemetry reporting (1=enabled, 0=disabled)
OTLP_ENABLE=1
OTLP_METRIC_TIMEOUT=3000
OTLP_METRIC_EXPORT_INTERVAL_MILLIS=3000
OTLP_METRIC_EXPORT_TIMEOUT_MILLIS=3000


# ELK Upload Configuration
UPLOAD_NODE_TRACE=true
UPLOAD_METRICS=true

# Tracing Configuration
OTLP_TRACE_TIMEOUT=3000
OTLP_TRACE_MAX_QUEUE_SIZE=2048
OTLP_TRACE_SCHEDULE_DELAY_MILLIS=3000
OTLP_TRACE_MAX_EXPORT_BATCH_SIZE=2048
OTLP_TRACE_EXPORT_TIMEOUT_MILLIS=3000

# Kafka Configuration for Node Tracing
KAFKA_SERVERS=YOUR_KAFKA_SERVERS
KAFKA_TIMEOUT=10
KAFKA_TOPIC=spark-agent-builder

# Link Service URLs
GET_LINK_URL=http://YOUR_LINK_HOST:18888/api/v1/tools
VERSIONS_LINK_URL=http://YOUR_LINK_HOST:18888/api/v1/tools/versions
RUN_LINK_URL=http://YOUR_LINK_HOST:18888/api/v1/tools/http_run

# Workflow Service URLs
GET_WORKFLOWS_URL=http://YOUR_WORKFLOW_HOST:7880/sparkflow/v1/protocol/get
WORKFLOW_SSE_BASE_URL=http://YOUR_WORKFLOW_HOST:7880/workflow/v1

# Knowledge Service URLs
CHUNK_QUERY_URL=http://YOUR_KNOWLEDGE_HOST:10007/knowledge/v1/chunk/query

# MCP Plugin URLs
LIST_MCP_PLUGIN_URL=http://YOUR_MCP_HOST:18888/api/v1/mcp/tool_list
RUN_MCP_PLUGIN_URL=http://YOUR_MCP_HOST:18888/api/v1/mcp/call_tool

# App Authentication Configuration
APP_AUTH_HOST=YOUR_APP_AUTH_HOST
APP_AUTH_ROUTER=/api-services/v2/app/details
APP_AUTH_PROT=http
APP_AUTH_API_KEY=YOUR_APP_AUTH_API_KEY
APP_AUTH_SECRET=YOUR_APP_AUTH_SECRET

# LLM Request Configuration
# Skip SSL certificate verification (only for development/testing)
# WARNING: Setting this to true in production is a security risk
# Set to true only if you encounter SSL certificate errors with HTTPS URLs
SKIP_SSL_VERIFY=false
