litellm/tests/test_litellm/interactions
Yuneng Jiang 11393f86f5
test(interactions): validate response fields against Interaction schema
Google restructured the live spec at ai.google.dev/static/api/
interactions.openapi.json: the output-only fields (notably the
`steps` array, formerly `outputs`) moved off the request schema
`CreateModelInteractionParams` onto a dedicated `Interaction`
response schema. The response-side tests still read from the
request schema, so `test_interaction_response_fields` failed with
"Output field 'steps' not in spec".

Point `test_interaction_response_fields` and `test_status_enum_values`
at the `Interaction` schema (the semantic response object; all output
fields incl. `steps` present there). Request-side tests keep using
`CreateModelInteractionParams` (all request fields verified still
present). 13/13 pass against the current live spec.
2026-05-15 21:13:36 -07:00
..
base_interactions_test.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -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 fix: encode upstream URL path identifiers 2026-04-29 22:02:39 -07:00
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 test(interactions): validate response fields against Interaction schema 2026-05-15 21:13:36 -07:00