mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-04 10:51:53 +09:00
[Update]
This commit is contained in:
parent
92967ed353
commit
495b3a52da
5 changed files with 161 additions and 30 deletions
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue