🤖 自动格式化代码 [skip ci]

This commit is contained in:
github-actions[bot]
2025-04-17 06:40:04 +00:00
parent dc96e26ca5
commit b305879541
6 changed files with 8 additions and 8 deletions

View File

@@ -51,7 +51,7 @@ class SearchKnowledgeTool(BaseTool):
@staticmethod
def get_info_from_db(
query_embedding: list, limit: int = 1, threshold: float = 0.5, return_raw: bool = False
query_embedding: list, limit: int = 1, threshold: float = 0.5, return_raw: bool = False
) -> Union[str, list]:
"""从数据库中获取相关信息

View File

@@ -26,7 +26,7 @@ class ToolUser:
@staticmethod
async def _build_tool_prompt(
message_txt: str, sender_name: str, chat_stream: ChatStream, subheartflow: SubHeartflow = None
message_txt: str, sender_name: str, chat_stream: ChatStream, subheartflow: SubHeartflow = None
):
"""构建工具使用的提示词