You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# ── json-verbose output format ──────────────────────────────────────────────
247
+
248
+
test_api_json_verbose() {
249
+
_api_start "${API_CONTAINER}-jv"||return 1
250
+
251
+
local out
252
+
out=$(post "$API_BASE/run" \
253
+
"{\"prompt\": \"read the file /etc/hostname and tell me what it says\", \"model\": \"$TEST_MODEL\", \"noContinue\": true, \"outputFormat\": \"json-verbose\"}")
254
+
assert_contains "$out"'"turns"'"json-verbose has turns array"|| { _api_stop "${API_CONTAINER}-jv";return 1; }
255
+
assert_contains "$out"'"tool_use"'"json-verbose has tool_use in turns"|| { _api_stop "${API_CONTAINER}-jv";return 1; }
256
+
assert_contains "$out"'"tool_result"'"json-verbose has tool_result in turns"|| { _api_stop "${API_CONTAINER}-jv";return 1; }
257
+
assert_contains "$out"'"system"'"json-verbose has system init"|| { _api_stop "${API_CONTAINER}-jv";return 1; }
0 commit comments