mirror of https://github.com/Mai-with-u/MaiBot.git
fix: 修正函数文档字符串参数错误
1. 修正 change_mood.py 中 execute 函数的错误参数 2. 修正 change_relationship.py 中 execute 函数的错误参数 3. 修正 reply_generator.py 中 generate 函数的错误参数 4. 修正 schedule_generator.py 中 get_current_num_task 函数缺少参数 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>pull/784/head
parent
2e143d5469
commit
df4e0c8494
|
|
@ -28,8 +28,7 @@ class ChangeMoodTool(BaseTool):
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
function_args: 工具参数
|
function_args: 工具参数
|
||||||
message_processed_plain_text: 原始消息文本
|
message_txt: 原始消息文本
|
||||||
response_set: 原始消息文本
|
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Dict: 工具执行结果
|
Dict: 工具执行结果
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,7 @@ class RelationshipTool(BaseTool):
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
function_args: 包含工具参数的字典
|
function_args: 包含工具参数的字典
|
||||||
text: 原始消息文本
|
message_txt: 原始消息文本
|
||||||
changed_value: 变更值
|
|
||||||
reason: 变更原因
|
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
dict: 包含执行结果的字典
|
dict: 包含执行结果的字典
|
||||||
|
|
|
||||||
|
|
@ -30,11 +30,8 @@ class ReplyGenerator:
|
||||||
"""生成回复
|
"""生成回复
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
goal: 对话目标
|
observation_info: 观察信息
|
||||||
chat_history: 聊天历史
|
conversation_info: 对话信息
|
||||||
knowledge_cache: 知识缓存
|
|
||||||
previous_reply: 上一次生成的回复(如果有)
|
|
||||||
retry_count: 当前重试次数
|
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
str: 生成的回复
|
str: 生成的回复
|
||||||
|
|
|
||||||
|
|
@ -235,6 +235,7 @@ class ScheduleGenerator:
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
num (int): 需要获取的日程数量,默认为1
|
num (int): 需要获取的日程数量,默认为1
|
||||||
|
time_info (bool): 是否包含时间信息,默认为False
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
list: 最新加入的日程列表
|
list: 最新加入的日程列表
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue