Package org.springframework.ai.chat
Interface ChatClient
- All Superinterfaces:
ModelClient<Prompt,ChatResponse>
- All Known Implementing Classes:
AzureOpenAiChatClient,BedrockAnthropicChatClient,BedrockCohereChatClient,BedrockLlama2ChatClient,BedrockTitanChatClient,HuggingfaceChatClient,MistralAiChatClient,OllamaChatClient,OpenAiChatClient,VertexAiGeminiChatClient,VertexAiPaLm2ChatClient
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
-
Method Details
-
call
-
call
Description copied from interface:ModelClientExecutes a method call to the AI model.- Specified by:
callin interfaceModelClient<Prompt,ChatResponse> - Parameters:
prompt- the request object to be sent to the AI model- Returns:
- the response from the AI model
-