@@ -140,8 +140,9 @@ async def run(self, prompt: str) -> str:
140140
141141
142142async def test_hello_world_agent (client : Client ):
143- if sys .version_info < (3 , 11 ):
144- pytest .skip ("Open AI support has type errors on 3.9 and 3.11" )
143+ new_config = client .config ()
144+ new_config ["data_converter" ] = open_ai_data_converter
145+ client = Client (** new_config )
145146
146147 with set_open_ai_agent_temporal_overrides (
147148 start_to_close_timeout = timedelta (seconds = 10 )
@@ -237,8 +238,9 @@ async def run(self, question: str) -> str:
237238
238239
239240async def test_tool_workflow (client : Client ):
240- if sys .version_info < (3 , 11 ):
241- pytest .skip ("Open AI support has type errors on 3.9 and 3.11" )
241+ new_config = client .config ()
242+ new_config ["data_converter" ] = open_ai_data_converter
243+ client = Client (** new_config )
242244
243245 with set_open_ai_agent_temporal_overrides (
244246 start_to_close_timeout = timedelta (seconds = 10 )
@@ -455,8 +457,9 @@ async def run(self, query: str):
455457
456458
457459async def test_research_workflow (client : Client ):
458- if sys .version_info < (3 , 11 ):
459- pytest .skip ("Open AI support has type errors on 3.9 and 3.11" )
460+ new_config = client .config ()
461+ new_config ["data_converter" ] = open_ai_data_converter
462+ client = Client (** new_config )
460463
461464 global response_index
462465 response_index = 0
@@ -668,9 +671,6 @@ class AgentAsToolsModel(TestModel):
668671
669672
670673async def test_agents_as_tools_workflow (client : Client ):
671- if sys .version_info < (3 , 11 ):
672- pytest .skip ("Open AI support has type errors on 3.9 and 3.10" )
673-
674674 new_config = client .config ()
675675 new_config ["data_converter" ] = open_ai_data_converter
676676 client = Client (** new_config )
@@ -1027,9 +1027,6 @@ def validate_process_user_message(self, input: ProcessUserMessageInput) -> None:
10271027
10281028
10291029async def test_customer_service_workflow (client : Client ):
1030- if sys .version_info < (3 , 11 ):
1031- pytest .skip ("Open AI support has type errors on 3.9 and 3.11" )
1032-
10331030 new_config = client .config ()
10341031 new_config ["data_converter" ] = open_ai_data_converter
10351032 client = Client (** new_config )
0 commit comments