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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    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.
    static final int
    The most meetings checked in one call (EXO-95138): the last days' events, the assistant asking again for older ones.
    static final int
    How 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 String
    The reason of an empty list: the meeting was not recorded, or not by this platform.
    static final String
    The 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

    Constructors
    Constructor
    Description
    MeetingRecordingMcpTool(WebConferencingService webConferencingService, org.springframework.beans.factory.ObjectProvider<RecordingOutlineReader> outlineReader)
    Builds the tool.
  • Method Summary

    Modifier and Type
    Method
    Description
    getMeetingRecordings(String conferenceUrl, String recordedFrom, String recordedTo, List<Object> meetings)
    Lists the recordings of the meeting behind a conference link that the current user can open, newest first (get_meeting_recordings); or, given several meetings at once, tells for each one whether it has recordings, see checkMeetings(List).

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.meeds.mcp.server.plugin.McpToolPlugin

    getCurrentUserAclIdentity, getCurrentUserLocale, getCurrentUserLocale, getCurrentUserName, getLocale
  • Field Details

    • NO_RECORDING

      public static final String NO_RECORDING
      The reason of an empty list: the meeting was not recorded, or not by this platform.
      See Also:
    • OTHER_PROVIDER

      public static final String OTHER_PROVIDER
      The reason of an empty list: the link is not one of an active provider's meetings.
      See Also:
    • INVALID_DATE

      public static final String 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_OUTLINED
      How 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:
    • MAX_MEETINGS

      public static final int MAX_MEETINGS
      The most meetings checked in one call (EXO-95138): the last days' events, the assistant asking again for older ones.
      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 lookup
      outlineReader - 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, List<Object> meetings) throws IllegalAccessException
      Lists the recordings of the meeting behind a conference link that the current user can open, newest first (get_meeting_recordings); or, given several meetings at once, tells for each one whether it has recordings, see checkMeetings(List). The MAX_OUTLINED newest 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, as get_event_conference returns it
      recordedFrom - the earliest recording date, RFC3339 or yyyy-MM-dd, optional
      recordedTo - the end of the range, RFC3339 or yyyy-MM-dd, optional: the server adds its grace, since a recording is saved after its meeting ends
      meetings - optional, instead of the three arguments above: the meetings to check, each a map of conference_url, recorded_from and recorded_to, at most MAX_MEETINGS
      Returns:
      the recordings, or an empty list with its reason; for several meetings, whether each one has recordings
      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 again
      IllegalAccessException - when the user may not read the meeting's recordings: not a member of its space, or not a participant; or when the request has no authenticated user