litellm/tests/test_litellm/interactions
Sameer Kankute 58a52da9d5
feat(interactions): migrate to Google Interactions API steps schema (May 2026)
Default to Api-Revision: 2026-05-20 (new `steps` schema). Add
`litellm.use_legacy_interactions_schema` global flag that sends
Api-Revision: 2026-05-07 for operators who need the legacy `outputs`
schema until June 8, 2026.

- Inject Api-Revision header in GoogleAIStudioInteractionsConfig.validate_environment()
- Auto-coalesce response_mime_type → response_format and image_config migration on new schema
- Add steps field to InteractionsAPIResponse and InteractionsAPIStreamingResponse
- Add StepStart/StepDelta/StepStop/InteractionCreated/etc. SSE event types
- Update streaming completion detection to handle interaction.completed event
- Bridge transformer populates both outputs and steps fields
- Bridge streaming iterator emits new-schema events by default

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-20 18:09:54 +05:30
..
base_interactions_test.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_agents_http_handler.py Gemini managed agents support (#28270) 2026-05-19 16:02:03 -07:00
test_agents_main_and_utils.py Gemini managed agents support (#28270) 2026-05-19 16:02:03 -07:00
test_gemini_interactions.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_gemini_interactions_transformation.py feat(interactions): migrate to Google Interactions API steps schema (May 2026) 2026-05-20 18:09:54 +05:30
test_google_interactions_integration.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_litellm_responses_bridge.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_openapi_compliance.py fix(tests): replace shut-down gpt-4o-audio-preview with gpt-audio-1.5 (#28281) 2026-05-19 14:48:30 -07:00