-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
100 lines (83 loc) · 4.1 KB
/
.env.example
File metadata and controls
100 lines (83 loc) · 4.1 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# NASDAQ Stock Agent - Environment Configuration Template
# Copy this file to .env and update with your actual values
# =============================================================================
# REQUIRED: Anthropic API Configuration
# =============================================================================
ANTHROPIC_API_KEY=your_anthropic_api_key_here
ANTHROPIC_MODEL=claude-3-haiku-20240307
# =============================================================================
# Application Configuration
# =============================================================================
APP_NAME=NASDAQ Stock Agent
APP_VERSION=1.0.0
DEBUG=false
HOST=0.0.0.0
PORT=8000
# =============================================================================
# Cache Configuration
# =============================================================================
CACHE_TTL_SECONDS=300
# =============================================================================
# Logging Configuration
# =============================================================================
LOG_RETENTION_DAYS=30
# =============================================================================
# Rate Limiting Configuration
# =============================================================================
RATE_LIMIT_REQUESTS=100
MAX_CONCURRENT_REQUESTS=50
# =============================================================================
# YFinance Configuration
# =============================================================================
YFINANCE_TIMEOUT=30
# =============================================================================
# MCP Server Configuration (Optional)
# =============================================================================
MCP_ENABLED=false
MCP_HOST=localhost
MCP_PORT=8001
# =============================================================================
# NEST Framework Configuration - NANDA Registry Integration
# =============================================================================
# Enable/disable NEST integration (true/false)
# When enabled, the agent will support A2A (Agent-to-Agent) communication
NEST_ENABLED=false
# A2A Server Configuration
# Port for the A2A server (default: 6000)
NEST_PORT=6000
# IMPORTANT: Replace with your actual public IP or domain for production
# This is the public URL where other agents can reach this agent's A2A endpoint
# Example: http://your-public-ip:6000 or https://your-domain.com:6000
NEST_PUBLIC_URL=http://YOUR_PUBLIC_IP:6000
# NANDA Registry Configuration
# URL of the NANDA Registry for agent discovery and registration
NEST_REGISTRY_URL=http://registry.chat39.com:6900
# Agent Identity
# Unique identifier for this agent in the NEST network
NEST_AGENT_ID=nasdaq-stock-agent
# Display name for the agent
NEST_AGENT_NAME=NASDAQ Stock Agent
# Agent Metadata
# Domain of expertise for the agent
NEST_DOMAIN=financial analysis
# Specific specialization within the domain
NEST_SPECIALIZATION=NASDAQ stock analysis and investment recommendations
# Description of agent capabilities (used for agent discovery)
NEST_DESCRIPTION=AI-powered agent that provides comprehensive stock analysis, technical and fundamental analysis, investment recommendations, and risk assessment for NASDAQ-listed stocks
# =============================================================================
# Setup Instructions
# =============================================================================
# 1. Copy this file: cp .env.example .env
# 2. Update ANTHROPIC_API_KEY with your actual API key
# 3. For NEST Integration:
# - Set NEST_ENABLED=true to enable A2A communication
# - Update NEST_PUBLIC_URL with your public IP or domain
# - Ensure port 6000 is open in your firewall/security group
# - The agent will register with NANDA Registry on startup
# 4. Adjust other settings as needed for your environment
#
# NEST Integration Notes:
# - When NEST_ENABLED=false, the agent runs in REST-only mode (port 8000)
# - When NEST_ENABLED=true, both REST (8000) and A2A (6000) servers run
# - Registry registration is automatic and includes retry logic
# - If python-a2a is not installed, NEST features will be disabled automatically