mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 05:16:00 +08:00
add WorkflowClient.get_result, increase version number (#8435)
Co-authored-by: wangying <wangying@xkool.org>
This commit is contained in:
parent
624331472a
commit
fa1af8e47b
@ -131,3 +131,6 @@ class WorkflowClient(DifyClient):
|
|||||||
def stop(self, task_id, user):
|
def stop(self, task_id, user):
|
||||||
data = {"user": user}
|
data = {"user": user}
|
||||||
return self._send_request("POST", f"/workflows/tasks/{task_id}/stop", data)
|
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}")
|
@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="dify-client",
|
name="dify-client",
|
||||||
version="0.1.10",
|
version="0.1.11",
|
||||||
author="Dify",
|
author="Dify",
|
||||||
author_email="hello@dify.ai",
|
author_email="hello@dify.ai",
|
||||||
description="A package for interacting with the Dify Service-API",
|
description="A package for interacting with the Dify Service-API",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user