Class OpenAiServiceImplementation

java.lang.Object
app.valuationcontrol.multimodule.library.helpers.openai.OpenAiServiceImplementation

@Component public class OpenAiServiceImplementation extends Object
  • Constructor Details

    • OpenAiServiceImplementation

      @Autowired public OpenAiServiceImplementation(org.springframework.ai.chat.client.ChatClient.Builder chatClientBuilder)
  • Method Details

    • getChatRequest

      public org.springframework.ai.chat.client.ChatClient.CallResponseSpec getChatRequest(org.springframework.ai.chat.prompt.Prompt prompt, Object toolObject)
    • doRequest

      public com.fasterxml.jackson.databind.JsonNode doRequest(org.springframework.ai.chat.prompt.Prompt messages, Object tool)