harmoni_bot.chatgpt_service

Module Contents

Classes

ChatGPTService

This is a class representation of a harmoni_dialogue service

Functions

main()

[summary]

class harmoni_bot.chatgpt_service.ChatGPTService(name, param)

Bases: harmoni_common_lib.service_manager.HarmoniServiceManager

This is a class representation of a harmoni_dialogue service (HarmoniServiceManager). It is essentially an extended combination of the harmoni_common_lib.service_server.HarmoniServiceServer and harmoni_common_lib.service_manager.HarmoniServiceManager classes

Parameters:
  • name (str) – Name of the current service

  • param (from yaml) – input parameters of the configuration.yaml file

setup_chat_gpt()

[summary] Setup the chatgpt request, connecting to ChatGPT services

request(input_text)

[summary]

Parameters:

input_text (str) – User request (or input text) for triggering chatgpt

Returns:

It containes information about the response received (bool) and response message (str)

response: bool message: str

Return type:

object

harmoni_bot.chatgpt_service.main()

[summary] Main function for starting HarmoniChatGPT service