File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -380,10 +380,9 @@ async def get_user_country() -> str:
380380
381381 result = await agent .run ('What language is spoken in the user country?' )
382382 # Should return CountryLanguage since we asked about language
383- assert isinstance (result .output , city_location_schema | country_language_schema )
384- if isinstance (result .output , country_language_schema ):
385- assert result .output .country == 'France' # type: ignore[attr-defined]
386- assert result .output .language == 'French' # type: ignore[attr-defined]
383+ assert isinstance (result .output , country_language_schema ), 're run test until llm outputs country_language_schema'
384+ assert result .output .country == 'France' # type: ignore[attr-defined]
385+ assert result .output .language == 'French' # type: ignore[attr-defined]
387386
388387
389388async def test_anthropic_auto_mode_sonnet_4_5 (
You can’t perform that action at this time.
0 commit comments