#!/bin/bash # Startet drei simulierte Sparks (je eine Ollama-Instanz, dazu llama-server und Agenten) und den Proxy. # Voraussetzung: ollama und llama-server installiert, Modelle smollm2:135m und qwen3:0.6b in Ollama. set -e cd "$(dirname "$0")" B=../../target/debug mkdir -p run/logs1 run/logs2 run/gguf rm -f run/test.db* run/pids # llama-server bekommt dieselben GGUF-Dateien wie Ollama python3 -I - < run/ollama$i.log 2>&1 & echo "ollama$i $!" >> run/pids done llama-server --models-dir run/gguf --no-models-autoload --models-max 4 --port 8181 > run/llama.log 2>&1 & echo "llama $!" >> run/pids $B/omega-agent -c agent1.toml > run/agent1.log 2>&1 & echo "agent1 $!" >> run/pids $B/omega-agent -c agent2.toml > run/agent2.log 2>&1 & echo "agent2 $!" >> run/pids sleep 3 $B/omega-proxy -c proxy.toml --as admin key create test | awk '{print $NF}' > run/key.txt $B/omega-proxy -c proxy.toml serve > run/proxy.log 2>&1 & echo "proxy $!" >> run/pids sleep 2 echo "gestartet: $(tr '\n' ' ' < run/pids)"