Package ai.tock.bot.admin.service
Object SentenceGenerationService
-
- All Implemented Interfaces:
public class SentenceGenerationServiceService that manage the Generate Sentences with Large Language Model (LLM) functionality
-
-
Field Summary
Fields Modifier and Type Field Description public final static SentenceGenerationServiceINSTANCE
-
Method Summary
Modifier and Type Method Description final BotSentenceGenerationConfigurationgetSentenceGenerationConfiguration(String namespace, String botId)Get the LLM Sentence Generation configuration final UnitdeleteConfig(String namespace, String botId)Deleting the LLM Sentence Generation Configuration final BotSentenceGenerationConfigurationsaveSentenceGeneration(BotSentenceGenerationConfigurationDTO sentenceGenerationConfig)Save SentenceGeneration configuration and filter errors -
-
Method Detail
-
getSentenceGenerationConfiguration
final BotSentenceGenerationConfiguration getSentenceGenerationConfiguration(String namespace, String botId)
Get the LLM Sentence Generation configuration
- Parameters:
namespace- : the namespacebotId- : the bot ID
-
deleteConfig
final Unit deleteConfig(String namespace, String botId)
Deleting the LLM Sentence Generation Configuration
- Parameters:
namespace- : the namespacebotId- : the bot ID
-
saveSentenceGeneration
final BotSentenceGenerationConfiguration saveSentenceGeneration(BotSentenceGenerationConfigurationDTO sentenceGenerationConfig)
Save SentenceGeneration configuration and filter errors
- Parameters:
sentenceGenerationConfig- : the llm sentence generation configuration to create or update- Returns:
BotSentenceGenerationConfiguration
-
-
-
-