-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (41 loc) · 1.74 KB
/
Makefile
File metadata and controls
50 lines (41 loc) · 1.74 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
PYTHON ?= python3
.PHONY: help test test-root test-cli run-agent run-cli fl-benchmark
help:
@echo "Cortex developer commands"
@echo ""
@echo " make test-root # run root runtime smoke tests"
@echo " make test-cli # run Memory V2 CLI track tests"
@echo " make test # run both test suites"
@echo " make run-agent # run FL agent (requires TASK, optional SESSION)"
@echo " make run-cli # run CLI track agent (requires TASK_ID, DOMAIN, SESSION)"
@echo " make fl-benchmark # run FL benchmark (optional START, RUNS)"
test-root:
$(PYTHON) -m pytest tests -q
test-cli:
$(PYTHON) -m pytest tracks/cli_sqlite/tests -q
test: test-root test-cli
run-agent:
@test -n "$(TASK)" || (echo "TASK is required. Example: make run-agent TASK='Create a 4-on-the-floor kick drum pattern'"; exit 1)
$(PYTHON) scripts/run_agent.py \
--task "$(TASK)" \
--session $${SESSION:-1} \
--max-steps $${MAX_STEPS:-80} \
--llm-backend $${LLM_BACKEND:-claude_print} \
$${VERBOSE:+--verbose}
run-cli:
@test -n "$(TASK_ID)" || (echo "TASK_ID is required. Example: make run-cli TASK_ID=aggregate_report DOMAIN=gridtool SESSION=9501"; exit 1)
@test -n "$(DOMAIN)" || (echo "DOMAIN is required. Example: DOMAIN=gridtool"; exit 1)
@test -n "$(SESSION)" || (echo "SESSION is required. Example: SESSION=9501"; exit 1)
$(PYTHON) tracks/cli_sqlite/scripts/run_cli_agent.py \
--task-id "$(TASK_ID)" \
--domain "$(DOMAIN)" \
--session "$(SESSION)" \
--max-steps $${MAX_STEPS:-12} \
--llm-backend $${LLM_BACKEND:-claude_print} \
$${VERBOSE:+--verbose}
fl-benchmark:
$(PYTHON) scripts/run_fl_benchmark.py \
--start-session $${START:-200001} \
--runs $${RUNS:-10} \
--max-steps $${MAX_STEPS:-12} \
--llm-backend $${LLM_BACKEND:-claude_print}