-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·89 lines (76 loc) · 2.53 KB
/
install.sh
File metadata and controls
executable file
·89 lines (76 loc) · 2.53 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
#!/bin/bash
# Any Agent - Universal AI Agent Containerization Framework
# Installation Script for macOS, Linux, and Windows (WSL/Git Bash)
set -e
echo "🚀 Installing Any Agent Framework..."
echo
# Check Python version
echo "📋 Checking prerequisites..."
python_version=$(python --version 2>&1 | awk '{print $2}')
required_version="3.10"
if python -c "import sys; sys.exit(0 if sys.version_info >= (3, 10) else 1)" 2>/dev/null; then
echo "✅ Python ${python_version} (compatible)"
else
echo "❌ Python 3.10+ required. Found: ${python_version}"
echo " Please upgrade Python and try again."
exit 1
fi
# Check Docker
if command -v docker &> /dev/null; then
echo "✅ Docker installed"
else
echo "⚠️ Docker not found - required for containerization"
echo " Install from: https://docs.docker.com/get-docker/"
fi
# Check Node.js for UI features
if command -v node &> /dev/null; then
node_version=$(node --version 2>/dev/null | cut -d 'v' -f 2 | cut -d '.' -f 1)
if [ "$node_version" -ge 18 ]; then
echo "✅ Node.js v$(node --version | cut -d 'v' -f 2) (compatible)"
else
echo "⚠️ Node.js 18+ recommended for Chat UI. Found: v$(node --version | cut -d 'v' -f 2)"
fi
else
echo "⚠️ Node.js not found - required for Chat UI features"
echo " Install from: https://nodejs.org/"
fi
echo
# Install with uv if available, fallback to pip
echo "📦 Installing dependencies..."
if command -v uv &> /dev/null; then
echo " Using uv (recommended)..."
uv sync
uv pip install -e .
else
echo " Using pip..."
pip install -e ".[dev]"
fi
echo
# Verify installation
echo "🔍 Verifying installation..."
if command -v any-agent &> /dev/null; then
echo "✅ Installation successful!"
echo
echo "🎉 Any Agent is now available system-wide!"
echo
echo " Usage: any-agent ./path/to/agent --port 8080"
echo " Help: any-agent --help"
echo
echo " Alternative: python -m any_agent ./path/to/agent"
echo
else
echo "❌ Installation failed - any-agent command not found"
echo " Try running: pip install -e ."
exit 1
fi
# Optional: Install uv if not available
if ! command -v uv &> /dev/null; then
echo "💡 Tip: Install 'uv' for faster dependency management:"
echo " curl -LsSf https://astral.sh/uv/install.sh | sh"
echo
fi
echo "📚 Next steps:"
echo " 1. Set up your environment variables (see README.md)"
echo " 2. Try containerizing an example agent:"
echo " any-agent examples/adk/agent_only --verbose"
echo