Interface ChatCompletionClient
- All Known Implementing Classes:
OpenAiChatCompletionClient
public interface ChatCompletionClient
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringcomplete(String systemPrompt, List<ChatCompletionClient.Turn> conversation)
-
Method Details
-
complete
- Parameters:
systemPrompt- instructions for the assistant (grounding, citation, language)conversation- ordered turns, each authored by theRole.USERorRole.ASSISTANT- Returns:
- the assistant's answer text, or
nullif the provider returned no content - Throws:
AiAssistantException- if the generation provider is unreachable or returns an error
-