BigQuery-Agent-Analytics-SDK icon indicating copy to clipboard operation
BigQuery-Agent-Analytics-SDK copied to clipboard

Add per_session_context to categorical evaluator

Open evekhm opened this issue 6 months ago • 0 comments

Summary

  • Adds optional per_session_context: dict[str, str] parameter to classify_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_context with matching session IDs and verify context appears in prompt
  • [ ] Pass per_session_context with non-matching session IDs and verify no effect

evekhm avatar May 26 '26 23:05 evekhm