mirror of
https://github.com/katanemo/plano.git
synced 2026-05-08 15:22:43 +02:00
31 lines
574 B
Bash
31 lines
574 B
Bash
|
|
#!/bin/bash
|
||
|
|
set -e
|
||
|
|
|
||
|
|
PIDS=()
|
||
|
|
|
||
|
|
log() { echo "$(date '+%F %T') - $*"; }
|
||
|
|
|
||
|
|
cleanup() {
|
||
|
|
log "Stopping agents..."
|
||
|
|
for PID in "${PIDS[@]}"; do
|
||
|
|
kill $PID 2>/dev/null && log "Stopped process $PID"
|
||
|
|
done
|
||
|
|
exit 0
|
||
|
|
}
|
||
|
|
|
||
|
|
trap cleanup EXIT INT TERM
|
||
|
|
|
||
|
|
export LLM_GATEWAY_ENDPOINT=http://localhost:12000/v1
|
||
|
|
|
||
|
|
log "Starting weather_agent on port 10510..."
|
||
|
|
uv run python src/travel_agents/weather_agent.py &
|
||
|
|
PIDS+=($!)
|
||
|
|
|
||
|
|
log "Starting flight_agent on port 10520..."
|
||
|
|
uv run python src/travel_agents/flight_agent.py &
|
||
|
|
PIDS+=($!)
|
||
|
|
|
||
|
|
for PID in "${PIDS[@]}"; do
|
||
|
|
wait "$PID"
|
||
|
|
done
|