File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ def get_tools(nc: Nextcloud):
1313 def list_talk_conversations ():
1414 """
1515 List all conversations in talk
16- :return:
16+ :return: returns a list of conversation names, e.g. ["Conversation 1", "Conversation 2"]
1717 """
1818 conversations = nc .talk .get_user_conversations ()
1919
20- return ", " . join ( [conv .display_name for conv in conversations ])
20+ return [conv .display_name for conv in conversations ]
2121
2222 @tool
2323 @dangerous_tool
@@ -54,7 +54,7 @@ def list_messages_in_conversation(conversation_name: str, n_messages: int = 30):
5454 List messages of a conversation in talk
5555 :param conversation_name: The name of the conversation to list messages of
5656 :param n_messages: The number of messages to receive
57- :return:
57+ :return: A list of messages
5858 """
5959 conversations = nc .talk .get_user_conversations ()
6060 conversation = {conv .display_name : conv for conv in conversations }[conversation_name ]
You can’t perform that action at this time.
0 commit comments