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:
@@ -28,8 +28,7 @@ class ChangeMoodTool(BaseTool):
|
||||
|
||||
Args:
|
||||
function_args: 工具参数
|
||||
message_processed_plain_text: 原始消息文本
|
||||
response_set: 原始消息文本
|
||||
message_txt: 原始消息文本
|
||||
|
||||
Returns:
|
||||
Dict: 工具执行结果
|
||||
|
||||
@@ -27,9 +27,7 @@ class RelationshipTool(BaseTool):
|
||||
|
||||
Args:
|
||||
function_args: 包含工具参数的字典
|
||||
text: 原始消息文本
|
||||
changed_value: 变更值
|
||||
reason: 变更原因
|
||||
message_txt: 原始消息文本
|
||||
|
||||
Returns:
|
||||
dict: 包含执行结果的字典
|
||||
|
||||
@@ -30,11 +30,8 @@ class ReplyGenerator:
|
||||
"""生成回复
|
||||
|
||||
Args:
|
||||
goal: 对话目标
|
||||
chat_history: 聊天历史
|
||||
knowledge_cache: 知识缓存
|
||||
previous_reply: 上一次生成的回复(如果有)
|
||||
retry_count: 当前重试次数
|
||||
observation_info: 观察信息
|
||||
conversation_info: 对话信息
|
||||
|
||||
Returns:
|
||||
str: 生成的回复
|
||||
|
||||
@@ -235,6 +235,7 @@ class ScheduleGenerator:
|
||||
|
||||
Args:
|
||||
num (int): 需要获取的日程数量,默认为1
|
||||
time_info (bool): 是否包含时间信息,默认为False
|
||||
|
||||
Returns:
|
||||
list: 最新加入的日程列表
|
||||
|
||||
Reference in New Issue
Block a user