Skip to content

Automate browser based workflows with AI

support totp verification url and totp identifier in run_task (#2175)

Shuchang Zheng35c4763bba29
diff --git a/skyvern/agent/agent.py b/skyvern/agent/agent.py
index a9fdf48b9..63c897bc7 100644
--- a/skyvern/agent/agent.py
+++ b/skyvern/agent/agent.py
@@ -297,6 +297,8 @@ class SkyvernAgent:
extracted_information_schema=data_extraction_schema,
error_code_mapping=error_code_mapping,
proxy_location=proxy_location,
+ totp_identifier=totp_identifier,
+ totp_verification_url=totp_url,
)
created_task = await app.agent.create_task(task_request, organization.organization_id)
diff --git a/skyvern/forge/sdk/routes/agent_protocol.py b/skyvern/forge/sdk/routes/agent_protocol.py
index 15bbf5ac1..10e7046c2 100644
--- a/skyvern/forge/sdk/routes/agent_protocol.py
+++ b/skyvern/forge/sdk/routes/agent_protocol.py
@@ -1495,6 +1495,8 @@ async def run_task(
error_code_mapping=run_request.error_code_mapping,
proxy_location=run_request.proxy_location,
browser_session_id=run_request.browser_session_id,
+ totp_verification_url=run_request.totp_url,
+ totp_identifier=run_request.totp_identifier,
)
task_v1_response = await task_v1_service.run_task(
task=task_v1_request,