diff --git a/cozepy/version.py b/cozepy/version.py index 008d011..51df8f9 100644 --- a/cozepy/version.py +++ b/cozepy/version.py @@ -3,7 +3,7 @@ import sys from functools import lru_cache -VERSION = "0.10.2" +VERSION = "0.10.3" def get_os_version() -> str: diff --git a/cozepy/workflows/runs/__init__.py b/cozepy/workflows/runs/__init__.py index a774941..252e1f0 100644 --- a/cozepy/workflows/runs/__init__.py +++ b/cozepy/workflows/runs/__init__.py @@ -17,12 +17,12 @@ class WorkflowRunResult(CozeModel): # Workflow execution result, usually a JSON serialized string. In some scenarios, a # string with a non-JSON structure may be returned. - data: Optional[str] + data: Optional[str] = "" # Execution ID of asynchronous execution. Only returned when the workflow is executed # asynchronously (is_async=true). You can use execute_id to call the Query Workflow # Asynchronous Execution Result API to obtain the final execution result of the workflow. - execute_id: Optional[str] + execute_id: Optional[str] = "" class WorkflowEventType(str, Enum): diff --git a/cozepy/workflows/runs/run_histories/__init__.py b/cozepy/workflows/runs/run_histories/__init__.py index 421ea26..5c50c9f 100644 --- a/cozepy/workflows/runs/run_histories/__init__.py +++ b/cozepy/workflows/runs/run_histories/__init__.py @@ -68,7 +68,7 @@ class WorkflowRunHistory(CozeModel): error_code: int # Status message. You can get detailed error information when the API call fails. - error_message: Optional[str] + error_message: Optional[str] = "" # Workflow trial run debugging page. Visit this page to view the running results, input # and output information of each workflow node. diff --git a/pyproject.toml b/pyproject.toml index 2c795ba..501ac84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cozepy" -version = "0.10.2" +version = "0.10.3" description = "OpenAPI SDK for Coze(coze.com/coze.cn)" authors = ["chyroc "] readme = "README.md"