gns3-server/requirements.txt
YueGuobin f8aa653ef9 feat(context-manager): add tiktoken dependency and improve token counting accuracy
- Add tiktoken as a required dependency for accurate token counting
- Update documentation with installation instructions and token counting strategy
- Improve logging to include tool definition token estimates
- Enhance error handling to fail fast when tiktoken is not available
- Update context manager to use tiktoken's cl100k_base encoding for GPT-4 compatibility
2026-03-05 01:01:34 +08:00

82 lines
2.2 KiB
Plaintext

# GNS3 Server Core Dependencies
uvicorn==0.39.0; python_version == '3.9' # version 0.39.0 is the last version supporting Python 3.9
uvicorn==0.41.0; python_version >= '3.10'
pydantic==2.12.5
fastapi==0.128.8; python_version == '3.9' # version 0.128.8 is the last version supporting Python 3.9
fastapi==0.133.0; python_version >= '3.10'
python-multipart==0.0.20; python_version == '3.9' # version 0.0.20 is the last to support Python 3.9
python-multipart==0.0.22; python_version >= '3.10'
websockets==15.0.1; python_version == '3.9' # version 15.0.1 is the last to support Python 3.9
websockets==16.0; python_version >= '3.10'
aiohttp>=3.13.3,<3.14
aiofiles>=25.1.0,<26.0
Jinja2>=3.1.6,<3.2
sentry-sdk>=2.53.0,<3 # optional dependency
psutil>=7.2.2
async-timeout>=5.0.1,<5.1; python_version < '3.11' # this library has effectively been upstreamed into Python 3.11+
distro>=1.9.0
py-cpuinfo>=9.0.0,<10.0
greenlet==3.3.2; python_version >= '3.13' # necessary to run sqlalchemy on Python >= 3.13
sqlalchemy==2.0.46
aiosqlite==0.22.1
alembic==1.15.2
bcrypt==5.0.0
joserfc==1.6.2
email-validator==2.3.0
watchdog==6.0.0
zstandard==0.25.0
platformdirs>=2.4.0,<3 # platformdirs >=3 conflicts when building Debian packages
truststore>=0.10.4; python_version >= '3.10'
# ==============================================================================
# GNS3 Copilot AI Agent Dependencies
# ==============================================================================
# Core AI and Automation Framework
aiosqlite>=0.19.0
langchain>=1.2.0
langchain-core>=1.2.6
langgraph>=1.0.5
langgraph-checkpoint-sqlite>=3.0.1
langgraph-checkpoint-postgres>=2.0.0
# Model Providers
langchain-openai>=1.1.6
langchain-anthropic>=1.3.1
langchain-google-genai>=4.1.3
langchain-aws>=1.2.0
langchain-ollama>=1.0.1
langchain-deepseek>=1.0.1
langchain-xai>=1.2.1
# Token Counting
tiktoken>=0.8.0
# Network Automation
netmiko>=4.6.0
nornir>=3.5.0
nornir-netmiko>=1.0.1
nornir-utils>=0.2.0
nornir-salt>=0.23.0
# Telnet Client
telnetlib3>=2.0.8
# Environment & Configuration
python-dotenv>=1.2.1
# HTTP Requests
requests>=2.32.5
urllib3>=2.6.2
httpx>=0.27.0
# Authentication
PyJWT>=2.10.1
psycopg-pool>=3.1.0
# Type Extensions
typing-extensions>=4.15.0
# Image Processing
Pillow>=10.0.0