From 464b77690203ed78d171dfafeca72049846557dc Mon Sep 17 00:00:00 2001 From: yinjiaqi Date: Thu, 23 Jan 2025 14:35:44 +0800 Subject: [PATCH] update --- python/core/console/component_client/data_class.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/core/console/component_client/data_class.py b/python/core/console/component_client/data_class.py index d66c6820..385129cb 100644 --- a/python/core/console/component_client/data_class.py +++ b/python/core/console/component_client/data_class.py @@ -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 的一个元素",