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>
This commit is contained in:
春河晴
2025-04-17 16:12:21 +09:00
parent 2e143d5469
commit df4e0c8494
5 changed files with 5 additions and 10 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -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: 工具执行结果

View File

@@ -27,9 +27,7 @@ class RelationshipTool(BaseTool):
Args: Args:
function_args: 包含工具参数的字典 function_args: 包含工具参数的字典
text: 原始消息文本 message_txt: 原始消息文本
changed_value: 变更值
reason: 变更原因
Returns: Returns:
dict: 包含执行结果的字典 dict: 包含执行结果的字典

View File

@@ -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: 生成的回复

View File

@@ -235,6 +235,7 @@ class ScheduleGenerator:
Args: Args:
num (int): 需要获取的日程数量默认为1 num (int): 需要获取的日程数量默认为1
time_info (bool): 是否包含时间信息默认为False
Returns: Returns:
list: 最新加入的日程列表 list: 最新加入的日程列表