Skip to content

Commit e4df3fe

Browse files
committed
fix(talk): Return a proper list instead of a csv string
Signed-off-by: Marcel Klehr <[email protected]>
1 parent f4dcf7f commit e4df3fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ex_app/lib/all_tools/talk.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)