Skip to content

Commit

Permalink
add base code (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrChengmo authored May 20, 2024
1 parent a815e9f commit bbf2d72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions appbuilder/core/assistant/type/thread_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ class RequiredAction(BaseModel):


class LastError(BaseModel):
type: str = ""
message: str = ""
type: Optional[str] = ""
message: Optional[str] = ""

class FinalAnswerMessage(BaseModel):
message_id: Optional[str] = ""
Expand Down Expand Up @@ -288,7 +288,7 @@ class RunStepResult(BaseModel):
cancelled_at: Optional[int] = 0
failed_at: Optional[int] = 0
completed_at: Optional[int] = 0
last_error: Union[LastError, str] = ""
last_error: Union[LastError, str, None] = None
type: Optional[str] = 'null'
step_datail: Union[RunStepDetail, None] = None

Expand Down

0 comments on commit bbf2d72

Please sign in to comment.