Skip to content

fix: Handle missing fields gracefully & Bump version to 0.10.3 #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <chyroc@bytedance.com>"]
readme = "README.md"
Expand Down
Loading