Interface ChatClientAdapter

All Known Implementing Classes:
LmStudioChatClientImpl

@Component public interface ChatClientAdapter
Adapter interface for chat clients. This allows us to switch between different AI providers. When Spring AI is available, this will be replaced by the actual Spring AI ChatClient.
  • Method Summary

    Modifier and Type
    Method
    Description
    call(String prompt)
    Send a prompt to the AI and get a response.
    call(String systemPrompt, String userPrompt)
    Send a prompt with system message to the AI and get a response.
  • Method Details

    • call

      String call(String prompt)
      Send a prompt to the AI and get a response.
      Parameters:
      prompt - the user prompt
      Returns:
      the AI response
    • call

      String call(String systemPrompt, String userPrompt)
      Send a prompt with system message to the AI and get a response.
      Parameters:
      systemPrompt - the system prompt
      userPrompt - the user prompt
      Returns:
      the AI response