Class MeetingRecordingMcpTool
java.lang.Object
org.exoplatform.webconferencing.mcp.MeetingRecordingMcpTool
- All Implemented Interfaces:
io.meeds.mcp.server.plugin.McpToolPlugin
@Service
@Profile("mcp-server")
public class MeetingRecordingMcpTool
extends Object
implements io.meeds.mcp.server.plugin.McpToolPlugin
The assistant tools of the web conferencing add-on: one public method per
tool, named in snake case, each described in this add-on's
ai-tool-definitions.json.
The acting user is the authenticated request's, never an argument: the recordings come back with that user's own rights.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe answer to a date argument that cannot be read: it names the argument, the value, the accepted formats with an example, and asks the model to resolve a relative expression itself.static final intHow many recordings, the newest, are listed with their chapters and speakers: reading them costs one read of each transcript, and the assistant narrows an older recording down by date anyway.static final StringThe reason of an empty list: the meeting was not recorded, or not by this platform.static final StringThe reason of an empty list: the link is not one of an active provider's meetings.Fields inherited from interface io.meeds.mcp.server.plugin.McpToolPlugin
DEFAULT_LIMIT, DEFAULT_OFFSET -
Constructor Summary
ConstructorsConstructorDescriptionMeetingRecordingMcpTool(WebConferencingService webConferencingService, org.springframework.beans.factory.ObjectProvider<RecordingOutlineReader> outlineReader) Builds the tool. -
Method Summary
Modifier and TypeMethodDescriptiongetMeetingRecordings(String conferenceUrl, String recordedFrom, String recordedTo) Lists the recordings of the meeting behind a conference link that the current user can open, newest first (get_meeting_recordings).Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.meeds.mcp.server.plugin.McpToolPlugin
getCurrentUserAclIdentity, getCurrentUserLocale, getCurrentUserLocale, getCurrentUserName, getLocale
-
Field Details
-
NO_RECORDING
The reason of an empty list: the meeting was not recorded, or not by this platform.- See Also:
-
OTHER_PROVIDER
The reason of an empty list: the link is not one of an active provider's meetings.- See Also:
-
INVALID_DATE
The answer to a date argument that cannot be read: it names the argument, the value, the accepted formats with an example, and asks the model to resolve a relative expression itself.- See Also:
-
MAX_OUTLINED
public static final int MAX_OUTLINEDHow many recordings, the newest, are listed with their chapters and speakers: reading them costs one read of each transcript, and the assistant narrows an older recording down by date anyway.- See Also:
-
-
Constructor Details
-
MeetingRecordingMcpTool
@Autowired public MeetingRecordingMcpTool(WebConferencingService webConferencingService, org.springframework.beans.factory.ObjectProvider<RecordingOutlineReader> outlineReader) Builds the tool.- Parameters:
webConferencingService- the service holding the recordings lookupoutlineReader- the reader of the recordings' chapters and speakers, absent without the Documents add-on
-
-
Method Details
-
getMeetingRecordings
public MeetingRecordingsModel getMeetingRecordings(String conferenceUrl, String recordedFrom, String recordedTo) throws IllegalAccessException Lists the recordings of the meeting behind a conference link that the current user can open, newest first (get_meeting_recordings). TheMAX_OUTLINEDnewest come with the chapters of their transcript and the names of its speakers, read with the same user's rights, so that the assistant picks a recording and a chapter before reading any transcript.- Parameters:
conferenceUrl- the meeting link, asget_event_conferencereturns itrecordedFrom- the earliest recording date, RFC3339 oryyyy-MM-dd, optionalrecordedTo- the end of the range, RFC3339 oryyyy-MM-dd, optional: the server adds its grace, since a recording is saved after its meeting ends- Returns:
- the recordings, or an empty list with its reason
- Throws:
IllegalArgumentException- when the link is missing, or a date is not in an accepted format: its message,INVALID_DATE, tells the model how to call againIllegalAccessException- when the user may not read the meeting's recordings: not a member of its space, or not a participant
-