BigQuery-Agent-Analytics-SDK
BigQuery-Agent-Analytics-SDK copied to clipboard
Add per_session_context to categorical evaluator
Summary
- Adds optional
per_session_context: dict[str, str]parameter toclassify_sessions_via_api() - Allows injecting per-session context (e.g. golden eval expected answers) into the judge prompt before the transcript
- Enables targeted evaluation without modifying the global prompt
Test plan
- [ ] Verify
classify_sessions_via_api()works without the new parameter (backward compatible) - [ ] Pass
per_session_contextwith matching session IDs and verify context appears in prompt - [ ] Pass
per_session_contextwith non-matching session IDs and verify no effect