Skip to content

Commit

Permalink
fix for py38
Browse files Browse the repository at this point in the history
  • Loading branch information
chengmo03 committed Mar 20, 2024
1 parent 3341464 commit b1c3163
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion appbuilder/core/console/agent_builder/agent_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def upload_local_file(self, conversation_id, local_file_path: str) -> str:

def run(self, conversation_id: str,
query: str,
file_ids: list[str] = [],
file_ids: list = [],
stream: bool = False,
) -> Message:

Expand Down
12 changes: 6 additions & 6 deletions appbuilder/core/console/agent_builder/data_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class HTTPRequest(BaseModel):
query: str = ""
response_mode: str
conversation_id: str
file_ids: list[str] = []
file_ids: list = []
app_id: str


Expand All @@ -47,7 +47,7 @@ class OriginalEvent(BaseModel):
event_code: int = ""
event_message: str = ""
node_name: str = ""
dependency_nodes: list[str] = []
dependency_nodes: list = []
event_type: str = ""
event_id: str = ""
event_status: str = ""
Expand All @@ -68,7 +68,7 @@ class Result(BaseModel):
conversation_id: str = ""
message_id: str = ""
is_completion: Union[bool, None] = ""
content: list[OriginalEvent] = []
content: list = []


class HTTPResponse(BaseModel):
Expand Down Expand Up @@ -106,7 +106,7 @@ class CodeDetail(BaseModel):
"""
text: str = ""
code: str = ""
files: list[str] = []
files: list = []


class RAGDetail(BaseModel):
Expand All @@ -116,7 +116,7 @@ class RAGDetail(BaseModel):
references(list[dict]): 引用详情
"""
text: str = ""
references: list[dict] = []
references: list = []


class FunctionCallDetail(BaseModel):
Expand Down Expand Up @@ -187,7 +187,7 @@ class AgentBuilderAnswer(BaseModel):
code: int = 0
message: str = ""
answer: str = ""
events: list[Event] = []
events: list = []


class FileUploadResult(BaseModel):
Expand Down

0 comments on commit b1c3163

Please sign in to comment.