Interface ChatCompletionClient

All Known Implementing Classes:
OpenAiChatCompletionClient

public interface ChatCompletionClient
  • Method Details

    • complete

      @Nullable String complete(String systemPrompt, List<ChatCompletionClient.Turn> conversation)
      Parameters:
      systemPrompt - instructions for the assistant (grounding, citation, language)
      conversation - ordered turns, each authored by the Role.USER or Role.ASSISTANT
      Returns:
      the assistant's answer text, or null if the provider returned no content
      Throws:
      AiAssistantException - if the generation provider is unreachable or returns an error