Kaynağa Gözat

Update message_notifier: avoid doc parsing error

StrayWarrior 3 hafta önce
ebeveyn
işleme
ec18f52c6c
1 değiştirilmiş dosya ile 11 ekleme ve 8 silme
  1. 11 8
      pqai_agent/toolkit/message_notifier.py

+ 11 - 8
pqai_agent/toolkit/message_notifier.py

@@ -11,6 +11,7 @@ class MessageNotifier(BaseToolkit):
 
     def message_notify_user(self, message: str) -> str:
         """Sends a message to the user.
+
         Args:
             message (str): The message to send.
         Returns:
@@ -22,15 +23,17 @@ class MessageNotifier(BaseToolkit):
 
     def output_multimodal_message(self, message: Dict[str, str]) -> str:
         """Outputs a multimodal message to the user.
+        Message schema:
+        {
+            "type": "text|image|gif|video|mini_program",
+            "content": "message content",
+            "title": "only needed if type is video or mini_program",
+            "cover_image": "only needed if type is mini_program",
+        }
+        if message type is image, gif, video or mini_program, the content should be a URL.
+
         Args:
-            message (Dict[str, str]): The message to output. Message schema:
-            {
-                "type": "text|image|gif|video|mini_program",
-                "content": "message content",
-                "title": "only needed if type is video or mini_program",
-                "cover_image": "only needed if type is mini_program",
-            }
-            if message type is image, gif, video or mini_program, the content should be a URL.
+            message (Dict[str, str]): The message to output.
         Returns:
             str: A confirmation message.
         """