#!/usr/bin/env bash # Regenerates every reproducible file under output/. Run from the module root # (spring-ai/getting-started). Needs Maven with the dependencies already resolved once online. # # output/05-*.txt is NOT regenerated here -- it needs a live network path to api.openai.com and a # running instance of the app started separately. See its own header for the exact commands. set -eu cd "$(dirname "$0")/.." mvn -q -o test echo echo "Regenerated output/01-plain-call.txt, 02-system-template.txt, 03-streaming.txt, 04-provider-switch.txt" echo "output/05-real-network-round-trip.txt was captured manually -- see its header."