This repository was archived by the owner on Nov 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
src/main_agent/utils/tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55class AskQuestionSchema (BaseModel ):
66 """
77 当你需要向用户确认信息的时候,使用此工具向用户提问。
8- 对于问题,应该提供一系列选项供用户选择。
8+ 对于问题,应该提供一系列选项供用户选择,包含2-5个建议答案,这些答案按照优先级或逻辑顺序从问题引出 。
99
1010 Examples:
1111
@@ -22,7 +22,7 @@ class AskQuestionSchema(BaseModel):
2222 - option_2: 不,我需要更多信息
2323 - option_3: 你的分析正确,但我希望你再考虑一下执行的方式
2424 """
25- question : str = Field (description = "需要向用户提问的问题" )
25+ question : str = Field (description = "需要向用户提问的问题,这应该是一个明确、具体的问题,可以解决您需要的信息 " )
2626 option_1 : str = Field (description = "选项1的内容" )
2727 option_2 : str = Field (description = "选项2的内容" )
2828 option_3 : Optional [str ] = Field (default = None , description = "选项3的内容(可选)" )
Original file line number Diff line number Diff line change 33
44class AttemptCompletionSchema (BaseModel ):
55 """
6- 当你认为一个任务完成的时候,使用此工具向系统确认该次任务完成
6+ 当你认为一个任务完成的时候,使用此工具向系统确认该次任务完成。收到工具使用结果并确认任务已完成后,使用此工具向用户展示您的工作结果。
7+ 如果用户对结果不满意,他们可能会给出反馈,您可以使用反馈进行改进并重试。
78
89 Example:
910
@@ -16,7 +17,7 @@ class AttemptCompletionSchema(BaseModel):
1617 - reason: 由于网络问题,无法访问相关资源,已向用户说明情况并建议稍后重试
1718 """
1819 status : str = Field (description = "任务完成状态,例如“成功”或“失败”,保持简短" )
19- reason : str = Field (description = "任务完成情况描述,描述该任务通过什么方式被完成,最终结果是什么" )
20+ reason : str = Field (description = "任务完成情况描述,描述该任务通过什么方式被完成,最终结果是什么。另外,不要填写疑问句或“如有更多请求可以向我询问”等句子 " )
2021
2122@tool ("attempt_completion" , args_schema = AttemptCompletionSchema )
2223def attempt_completion (status : str , reason : str ) -> str :
You can’t perform that action at this time.
0 commit comments