harmoni_bot.chatgpt_service
Module Contents
Classes
This is a class representation of a harmoni_dialogue service |
Functions
|
[summary] |
- class harmoni_bot.chatgpt_service.ChatGPTService(name, param)
Bases:
harmoni_common_lib.service_manager.HarmoniServiceManagerThis is a class representation of a harmoni_dialogue service (HarmoniServiceManager). It is essentially an extended combination of the
harmoni_common_lib.service_server.HarmoniServiceServerandharmoni_common_lib.service_manager.HarmoniServiceManagerclasses- 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