import time; from common2 import *; import safety as S; SYSTEM,TASK=S.SYSTEM,S.TASK from openai import AsyncOpenAI from agents import Agent, Runner, OpenAIChatCompletionsModel, ModelSettings, set_tracing_disabled, function_tool set_tracing_disabled(True) m=OpenAIChatCompletionsModel(model=MODEL, openai_client=AsyncOpenAI(base_url=BASE, api_key=KEY)) ag=Agent(name="ops", instructions=SYSTEM, model=m, model_settings=ModelSettings(temperature=0), tools=[function_tool(f) for f in S.TOOLS]) s=time.time(); OUT=Runner.run_sync(ag, TASK, max_turns=30).final_output; print("\n=====FINAL=====\n",OUT); print(f"\nELAPSED {time.time()-s:.1f}s")