Mission #01 ยท Intermediate
Observe prompt & model assets
Tell BHANUJ AIGP about a prompt and model your app used. Your app still writes prompts and runs models itself.
STEP 01
Start AIGP locally
Start the local stack from your AIGP checkout.
Run in your AI Governance Platform checkout./servers.shExpected outcome
The launcher finishes and Studio is available locally.
STEP 02
Open local Studio
Sign in to Studio with the local development credentials from your Keycloak environment.
Expected outcome
You reach the Studio home screen and can open the Assets workspace.
STEP 03
Prepare your app credentials
Set the local API address and a bearer token from your sign-in provider.
Run in your AI Governance Platform checkoutexport AI_GOVERNANCE_API_URL=http://localhost:8000 export AI_GOVERNANCE_TOKEN=replace-with-a-bearer-tokenExpected outcome
Your app now has what it needs to call the observation API.
STEP 04
Record a prompt your app used
Send the stable identity of the prompt used by your app.
Run in your AI Governance Platform checkoutcurl -X POST "$AI_GOVERNANCE_API_URL/api/v1/prompts/observations" \ -H "Authorization: Bearer $AI_GOVERNANCE_TOKEN" \ -H 'Content-Type: application/json' \ -d '{ "name": "support-assistant", "version": "v7", "source_system": "support-api", "source_reference": "evaluation-run-123", "content_hash": "sha256:replace-with-the-runtime-hash", "variables": ["question", "context"] }'Expected outcome
The API accepts the observation. Repeating the identical request is idempotent.
STEP 05
Check record
Find the new prompt in the Prompt Catalog and see where it came from.
Expected outcome
The prompt is marked Observed. Its text is not shown when you supplied only a hash.
