- 新增 loop.py Agent 运行循环 - 优化 memory.py 记忆模块 - 扩展 api/routes.py 接口 - 更新 tools 模块:builtin.py, manager.py, __init__.py - 新增 .env.example 配置示例 - 更新 requirements.txt 依赖 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
35 lines
845 B
Plaintext
35 lines
845 B
Plaintext
# X-Agents Python Agent Environment Configuration
|
|
|
|
# API Settings
|
|
API_HOST=0.0.0.0
|
|
API_PORT=8001
|
|
|
|
# Go Backend URL (for tool sync)
|
|
GO_BACKEND_URL=http://localhost:8080
|
|
|
|
# LLM Provider (openai/anthropic)
|
|
LLM_PROVIDER=openai
|
|
|
|
# LLM API Key (required for actual LLM calls)
|
|
LLM_API_KEY=your-api-key-here
|
|
|
|
# LLM Model
|
|
LLM_MODEL=gpt-4o
|
|
|
|
# Optional: Custom LLM Base URL (for proxy/alternative endpoints)
|
|
# LLM_BASE_URL=https://api.openai.com/v1
|
|
|
|
# Workspace for agent files
|
|
WORKSPACE=./workspace
|
|
|
|
# Agent settings
|
|
MAX_ITERATIONS=10
|
|
TEMPERATURE=0.7
|
|
|
|
# Sandbox Configuration (optional)
|
|
# Enable sandbox mode for secure code execution (bwrap/gvisor)
|
|
# SANDBOX_TYPE=bwrap # Options: bwrap, gvisor, none
|
|
# SANDBOX_TIMEOUT=60 # Default timeout in seconds
|
|
# GVISCOR_RUNSC_PATH=runsc # Path to gVisor runsc binary
|
|
# BWRAP_PATH=bwrap # Path to bwrap binary
|