publicclassOpenAIChatProcessorimplementsProcessor<MultiChatMessage,ChatMessage> {// OpenAiApi instance used for making requestsprivatefinalOpenAIService openAIService;// Configuration for the OpenAI Chat ProcessorprivatefinalOpenAIChatProcessorConfig openAIChatProcessorConfig; @InjectpublicOpenAIChatProcessor(OpenAIService openAIService,OpenAIChatProcessorConfig openAIChatProcessorConfig) {this.openAIService= openAIService;this.openAIChatProcessorConfig= openAIChatProcessorConfig; }// Method to run the module with the given input and return the output chat message @OverridepublicChatMessagerun(MultiChatMessage inputData) {} @OverridepublicListenableFuture<ChatMessage> runAsync(MultiChatMessage inputData) {}}