add WorkflowClient.get_result, increase version number (#8435)

Co-authored-by: wangying <wangying@xkool.org>
This commit is contained in:
Ying Wang
2024-09-14 19:06:37 +08:00
committed by GitHub
parent 624331472a
commit fa1af8e47b
2 changed files with 4 additions and 1 deletions

View File

@@ -131,3 +131,6 @@ class WorkflowClient(DifyClient):
def stop(self, task_id, user):
data = {"user": user}
return self._send_request("POST", f"/workflows/tasks/{task_id}/stop", data)
def get_result(self, workflow_run_id):
return self._send_request("GET", f"/workflows/run/{workflow_run_id}")