Skip to main content

Module env

Module env 

Source
Expand description

Environment variable boundary for runtime configuration.

This module is the only production boundary that reads process environment variables. It normalizes platform directory inputs and relay-specific overrides into typed structures before application, path, or network code consumes them.

Structs§

AgentEnvOverrides
Agent protocol settings read from relay-specific environment variables.
EnvError
Environment parsing error with the exact variable that failed validation.
EnvironmentConfig
Fully parsed process environment relevant to relay-knowledge.
FileIndexEnvOverrides
Local file index settings read from relay-specific environment variables.
NetworkEnvOverrides
Network settings read from relay-specific and generic environment variables.
PathEnvOverrides
Relay-specific path overrides read from environment variables.
PlatformEnvironment
Platform directory inputs captured from the environment.
RemoteCliEnvOverrides
Remote service settings read from relay-specific environment variables.
RemoteCliEnvironmentConfig
Environment subset needed before a remote CLI command can dispatch over HTTP.
RetrievalEnvOverrides
Retrieval backend settings read from relay-specific environment variables.
TelemetryEnvOverrides
Telemetry exporter settings read from relay-specific environment variables.
UpdateEnvOverrides
Release update-check settings read from relay-specific environment variables.
WatcherEnvOverrides
File watcher settings read from relay-specific environment variables.
WorkerEnvOverrides
Worker and service-operator settings read from relay-specific environment variables.

Enums§

EnvErrorKind
Error category for environment parsing.
PlatformKind
Operating-system family used by path resolution.

Constants§

ALL_PROXY
ALL_PROXY_LOWER
HTTPS_PROXY
HTTPS_PROXY_LOWER
HTTP_PROXY
HTTP_PROXY_LOWER
NO_PROXY
NO_PROXY_LOWER
RELAY_KNOWLEDGE_AGENT_AUDIT_QUEUE_DEPTH
RELAY_KNOWLEDGE_AGENT_AUDIT_SINK_ENABLED
RELAY_KNOWLEDGE_CACHE_DIR
RELAY_KNOWLEDGE_CODE_INDEX_MAX_IN_FLIGHT
RELAY_KNOWLEDGE_CONFIG_DIR
RELAY_KNOWLEDGE_DATA_DIR
RELAY_KNOWLEDGE_EMBEDDING_API_KEY
RELAY_KNOWLEDGE_EMBEDDING_BASE_URL
RELAY_KNOWLEDGE_EMBEDDING_BATCH_SIZE
RELAY_KNOWLEDGE_EMBEDDING_DIMENSION
RELAY_KNOWLEDGE_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WLEDGE_RERANK_BACKEND
RELAY_KNOWLEDGE_RERANK_CANDIDATE_MULTIPLIER
RELAY_KNOWLEDGE_RERANK_MAX_CANDIDATES
RELAY_KNOWLEDGE_RERANK_MODEL
RELAY_KNOWLEDGE_RERANK_TIMEOUT_MS
RELAY_KNOWLEDGE_RUNTIME_DIR
RELAY_KNOWLEDGE_SEMANTIC_BACKEND
RELAY_KNOWLEDGE_SERVICE_DIR
RELAY_KNOWLEDGE_SILENT_UPDATES_ENABLED
RELAY_KNOWLEDGE_STATE_DIR
RELAY_KNOWLEDGE_STORAGE_TOPOLOGY
RELAY_KNOWLEDGE_TEMP_DIR
RELAY_KNOWLEDGE_TEXT_EMBEDDING_MODEL
RELAY_KNOWLEDGE_UPDATE_CHECK_ENABLED
RELAY_KNOWLEDGE_UPDATE_CHECK_INTERVAL_MS
RELAY_KNOWLEDGE_UPDATE_GITHUB_REPO
RELAY_KNOWLEDGE_UPDATE_SOURCES
RELAY_KNOWLEDGE_VECTOR_BACKEND
RELAY_KNOWLEDGE_WATCHER_DEBOUNCE_MS
RELAY_KNOWLEDGE_WATCHER_ENABLED
RELAY_KNOWLEDGE_WATCHER_HASH_CACHE_CAPACITY
RELAY_KNOWLEDGE_WATCHER_MAX_WATCH_DIRS
RELAY_KNOWLEDGE_WORKER_EMBEDDING_ENDPOINT
RELAY_KNOWLEDGE_WORKER_EXTRACTOR_ENDPOINT
RELAY_KNOWLEDGE_WORKER_MAX_IN_FLIGHT
RELAY_KNOWLEDGE_WORKER_OCR_ENDPOINT
RELAY_KNOWLEDGE_WORKER_VISION_ENDPOINT
RELAY_OTEL_ENDPOINT
RELAY_OTEL_EXPORT_TIMEOUT_MS
RELAY_OTEL_METRICS
RELAY_OTEL_SERVICE_ENVIRONMENT
RELAY_OTEL_TRACES
SSL_VERIFY
SSL_VERIFY_LOWER