Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/prerna/collaboration/CollaborationAgentTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@
import prerna.io.connector.ms.outlook.MicrosoftOutlookSaveDraftReactor;
import prerna.io.connector.ms.teams.MicrosoftTeamsDownloadFileReactor;
import prerna.io.connector.ms.teams.MicrosoftTeamsDownloadMessageAttachmentReactor;
import prerna.io.connector.ms.teams.MicrosoftTeamsGetChannelMessageReactor;
import prerna.io.connector.ms.teams.MicrosoftTeamsGetChatMessageReactor;
import prerna.io.connector.ms.teams.MicrosoftTeamsGetChatReactor;
import prerna.io.connector.ms.teams.MicrosoftTeamsListChannelMessagesReactor;
import prerna.io.connector.ms.teams.MicrosoftTeamsListChannelsReactor;
import prerna.io.connector.ms.teams.MicrosoftTeamsListChatMessagesReactor;
import prerna.io.connector.ms.teams.MicrosoftTeamsListChatsReactor;
Expand Down Expand Up @@ -191,6 +193,9 @@ public final class CollaborationAgentTools {
REACTORS.put("ListChannelFiles", MicrosoftTeamsListFilesReactor.class);
REACTORS.put("DownloadChannelFile", MicrosoftTeamsDownloadFileReactor.class);
REACTORS.put("UploadChannelFile", MicrosoftTeamsUploadFileReactor.class);
// read messages posted in a Teams channel; offered as deferred tools
REACTORS.put("ListChannelMessages", MicrosoftTeamsListChannelMessagesReactor.class);
REACTORS.put("GetChannelMessage", MicrosoftTeamsGetChannelMessageReactor.class);
REACTORS.put("ListChats", MicrosoftTeamsListChatsReactor.class);
REACTORS.put("GetChat", MicrosoftTeamsGetChatReactor.class);
REACTORS.put("ListChatMessages", MicrosoftTeamsListChatMessagesReactor.class);
Expand Down Expand Up @@ -264,11 +269,11 @@ public final class CollaborationAgentTools {

// tools the model loads on demand (SearchTools/LoadTools): direct Microsoft 365
// mail after Brain's own search,
// calendar changes, Teams channels and their files, one Teams chat or message
// calendar changes, Teams channels and their files, channel messages, one Teams chat or message
// by id, skills, Brain edits, and listing or managing routines
private static final Set<String> DEFERRED = Set.of("ListM365Mail", "DeleteMySkill", "CreateEvent", "UpdateEvent",
"DeleteEvent", "RespondToEvent", "ListChannels", "ListChannelFiles", "DownloadChannelFile",
"UploadChannelFile", "GetChat", "GetChatMessage", "ListMySkills", "OpenSkill", "PublishSkill",
"UploadChannelFile", "ListChannelMessages", "GetChannelMessage", "GetChat", "GetChatMessage", "ListMySkills", "OpenSkill", "PublishSkill",
"UseSkillInAssistant", "EditTopic", "EditThread", "ListRoutines", "ManageRoutine");
// what the chat card calls a tool when its words alone would not say it
private static final Map<String, String> TITLES = Map.of("ShowItem", "Open Beside Chat", "UseSkillInAssistant",
Expand Down
Loading