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
    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)
    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, 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:
  • 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) throws IllegalAccessException
      Lists the recordings of the meeting behind a conference link that the current user can open, newest first (get_meeting_recordings). 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
      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 again
      IllegalAccessException - when the user may not read the meeting's recordings: not a member of its space, or not a participant