Eashan Kaushik 94f68ef951
refactor(usecases): update folder names
* search tool added

* search tool added

* rename

* Delete 02-use-cases/02-DB-Performance-Analyzer directory

Signed-off-by: Eashan Kaushik <50113394+EashanKaushik@users.noreply.github.com>

* Delete 02-use-cases/07-AWS-Operations-Agent directory

Signed-off-by: Eashan Kaushik <50113394+EashanKaushik@users.noreply.github.com>

---------

Signed-off-by: Eashan Kaushik <50113394+EashanKaushik@users.noreply.github.com>
2025-07-17 14:26:27 -04:00

43 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# Bedrock AgentCore Gateway AWS Operations Agent Client Runner
# Runs the modular AWS Operations Agent client (main.py)
set -e
# Get script directory
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SRC_DIR="$SCRIPT_DIR/src"
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
echo "🤖 Bedrock AgentCore Gateway AWS Operations Agent Client"
echo "====================================="
# Check Python version
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is not installed. Please install Python 3.8 or higher."
exit 1
fi
# Check if virtual environment exists
if [ ! -d "$SCRIPT_DIR/venv" ]; then
echo "📦 Creating virtual environment..."
python3 -m venv "$SCRIPT_DIR/venv"
fi
# Activate virtual environment
source "$SCRIPT_DIR/venv/bin/activate"
# Install requirements
echo "📦 Installing requirements..."
pip install -q -r "$SCRIPT_DIR/requirements.txt"
# Set Python path
export PYTHONPATH="$SRC_DIR:$PYTHONPATH"
echo "🚀 Starting AWS Operations Agent Client..."
echo ""
# Run the client
python3 "$SRC_DIR/main.py" "$@"