Skip to content

Commit

Permalink
fix: Handle missing fields gracefully & Bump version to 0.10.3 (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
chyroc authored Jan 17, 2025
1 parent de6e8b4 commit 8e40beb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cozepy/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
from functools import lru_cache

VERSION = "0.10.2"
VERSION = "0.10.3"


def get_os_version() -> str:
Expand Down
4 changes: 2 additions & 2 deletions cozepy/workflows/runs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion cozepy/workflows/runs/run_histories/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 8e40beb

Please sign in to comment.