-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathharbor-run.sh
More file actions
executable file
·60 lines (47 loc) · 2.31 KB
/
Copy pathharbor-run.sh
File metadata and controls
executable file
·60 lines (47 loc) · 2.31 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
#!/bin/bash
set -euo pipefail
# ── Configuration ────────────────────────────────────────────────────────────
# LLM API key (required)
export OURO_API_KEY="${OURO_API_KEY:-}"
# LLM API base URL (optional, for proxy/relay APIs)
# export OURO_BASE_URL="https://your-proxy-api.com"
# LLM request timeout in seconds (default: 600)
# export OURO_TIMEOUT=600
# Model to use
MODEL="anthropic/kimi-k2-5-latest"
# Dataset to evaluate
DATASET="terminal-bench-sample@2.0"
# ouro version to install in container (empty = latest from PyPI)
AGENT_VERSION="0.2.4"
# ouro git branch to install from (overrides AGENT_VERSION if set)
AGENT_BRANCH=""
# Timeout multiplier (default setup=360s, so 2.0 → 720s). Increase for slow networks.
TIMEOUT_MULTIPLIER=2.0
# ── Proxy ─────────────────────────────────────────────────────────
# Clash/proxy port on localhost. Set to empty to disable.
PROXY_PORT="7890"
if [ -n "$PROXY_PORT" ]; then
export http_proxy="http://127.0.0.1:${PROXY_PORT}"
export https_proxy="http://127.0.0.1:${PROXY_PORT}"
# Unset SOCKS proxy to avoid socksio dependency in harbor
unset all_proxy ALL_PROXY 2>/dev/null || true
fi
# ── Validation ───────────────────────────────────────────────────────────────
if [ -z "$OURO_API_KEY" ]; then
echo "Error: OURO_API_KEY is not set. Export it or edit this script." >&2
exit 1
fi
# ── Run ──────────────────────────────────────────────────────────────────────
AGENT_KWARGS=()
if [ -n "$AGENT_BRANCH" ]; then
AGENT_KWARGS+=(--agent-kwarg "branch=$AGENT_BRANCH")
elif [ -n "$AGENT_VERSION" ]; then
AGENT_KWARGS+=(--agent-kwarg "version=$AGENT_VERSION")
fi
harbor run \
--agent-import-path ouro_harbor.ouro_agent:OuroAgent \
--model "$MODEL" \
--timeout-multiplier "$TIMEOUT_MULTIPLIER" \
--dataset "$DATASET" \
"${AGENT_KWARGS[@]}" \
"$@"