This commit is contained in:
tv0924@icloud.com 2025-06-22 22:19:30 +09:00
commit 495b3a52da
5 changed files with 161 additions and 30 deletions

View file

@ -1,6 +1,6 @@
from lib.browser_use_utils.clean_resources import clean_agent_resources
async def run_agent(agent):
async def run_agent(agent) -> tuple[int, str]:
try:
response = await agent.run()
final_result = response.final_result()
@ -16,5 +16,4 @@ async def run_agent(agent):
else:
return 2, "일반 에러로 인한 실패"
finally:
await clean_agent_resources(agent)
print("리소스 정리 완료")
await clean_agent_resources(agent)