Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yinjiaqi authored and yinjiaqi committed Jan 23, 2025
1 parent 6fb7524 commit 464b776
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions python/core/console/component_client/data_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ class Event(BaseModel):

class RunResponse(BaseModel):
""" Component Run方法响应体 """
conversation_id: str = Field(..., description="对话id")
message_id: str = Field(..., description="消息id")
trace_id: str = Field(..., description="追踪id")
user_id: str = Field(..., description="开发者UUID(计费依赖)")
conversation_id: str = Field(None, description="对话id")
message_id: str = Field(None, description="消息id")
trace_id: str = Field(None, description="追踪id")
user_id: str = Field(None, description="开发者UUID(计费依赖)")
end_user_id: str = Field(None, description="终端用户id")
status: str = Field(..., description="对话状态,有interrupt, running, error, done四种枚举值")
role: str = Field(..., description="当前消息来源,默认tool")
status: str = Field(None, description="对话状态,有interrupt, running, error, done四种枚举值")
role: str = Field(None, description="当前消息来源,默认tool")
content: list[ContentWithEvent] = Field(
None,
description="当前组件返回内容的主要payload,List[ContentWithEvent],每个 Content 包括了当前 event 的一个元素",
Expand Down

0 comments on commit 464b776

Please sign in to comment.