File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import asyncio
44from datetime import timedelta
55
6- from temporalio .client import Client
7- from temporalio .contrib .openai_agents import (
8- ModelActivityParameters ,
9- OpenAIAgentsPlugin
10- )
6+ from temporalio .client import Client , ClientConfig
7+ from temporalio .contrib .openai_agents import ModelActivityParameters , OpenAIAgentsPlugin
118from temporalio .worker import Worker
12- from temporalio .client import ClientConfig
139
1410from openai_agents .workflows .agents_as_tools_workflow import AgentsAsToolsWorkflow
1511from openai_agents .workflows .customer_service_workflow import CustomerServiceWorkflow
@@ -26,10 +22,10 @@ async def main():
2622 plugins = [
2723 OpenAIAgentsPlugin (
2824 model_params = ModelActivityParameters (
29- start_to_close_timeout = timedelta (seconds = 120 )
25+ start_to_close_timeout = timedelta (seconds = 120 )
3026 )
3127 ),
32- ]
28+ ],
3329 )
3430
3531 worker = Worker (
You can’t perform that action at this time.
0 commit comments