exclude task request info from the webhook request payload (#195)

This commit is contained in:
Shuchang Zheng
2024-04-15 16:36:57 -07:00
committed by GitHub
parent 836f9d07a9
commit 0ac6e1a2ba

View File

@@ -840,7 +840,7 @@ class ForgeAgent(Agent):
# send task_response to the webhook callback url
# TODO: use async requests (httpx)
timestamp = str(int(datetime.utcnow().timestamp()))
payload = task_response.model_dump_json(exclude={"request": {"navigation_payload"}})
payload = task_response.model_dump_json(exclude={"request"})
signature = generate_skyvern_signature(
payload=payload,
api_key=api_key,