AI service

Hierarchy

  • AIService

Constructors

Properties

httpClient: HttpClient
namespace: string = '/ai-backend/v1'

Methods

  • Get summary for audio file

    Parameters

    • text: {
          text: string;
      }

      text audio file

      • text: string

    Returns Promise<{
        data: {
            summary: string;
        };
    }>

    summary text

  • Get transcript for audio file

    Parameters

    • audioUrl: {
          audioUrl: string;
      }

      url for audio file

      • audioUrl: string

    Returns Promise<{
        data: {
            transcript: string;
        };
    }>

    transcript text

  • Get email follow up

    Parameters

    • text: {
          text: string;
          tone: EMailTone;
      }

      text audio file

    Returns Promise<{
        data: {
            email_text: string;
            subject: string;
        };
    }>

    summary text

  • Get messages summary

    Parameters

    • text: {
          text: string;
      }

      string by format: ${author?.firstName} ${author?.lastName}: ${message}\n${nextMessageData}

      • text: string

    Returns Promise<{
        data: {
            summary: string;
        };
    }>

    messages summary

  • Get task title and description by messages

    Parameters

    • text: {
          text: string;
      }

      string by format: ${author?.firstName} ${author?.lastName}: ${message}\n${nextMessageData}

      • text: string

    Returns Promise<{
        data: {
            description: string;
            title: string;
        };
    }>

    task title and description

Generated using TypeDoc