Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

Ying Wangfa1af8e47bf1
diff --git a/sdks/python-client/dify_client/client.py b/sdks/python-client/dify_client/client.py
index a8da1d7cae7..b6b0ced2ce7 100644
--- a/sdks/python-client/dify_client/client.py
+++ b/sdks/python-client/dify_client/client.py
@@ -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}")
\ No newline at end of file
diff --git a/sdks/python-client/setup.py b/sdks/python-client/setup.py
index e74748377eb..e7253f73918 100644
--- a/sdks/python-client/setup.py
+++ b/sdks/python-client/setup.py
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setup(
name="dify-client",
- version="0.1.10",
+ version="0.1.11",
author="Dify",
author_email="[email protected]",
description="A package for interacting with the Dify Service-API",