fix(message_tools): improve description for SendMessageToUserTool usage

fixes: #8355
This commit is contained in:
Soulter
2026-05-30 14:01:25 +08:00
parent 0ffdf54407
commit 49036f8f9d

View File

@@ -27,7 +27,7 @@ class SendMessageToUserTool(FunctionTool[AstrAgentContext]):
"Send message to the user. "
"Supports various message types including `plain`, `image`, `record`, `video`, `file`, and `mention_user`. "
"Use this tool to send media files (`image`, `record`, `video`, `file`), "
"or when you need to proactively message the user(such as cron job). For normal text replies, you can output directly."
"or when you need to proactively message the user(such as cron job). For other normal text replies, you can output directly and no need to use this tool."
)
parameters: dict = Field(
default_factory=lambda: {