Package org.springframework.ai.chat
Interface StreamingChatClient
- All Superinterfaces:
StreamingModelClient<Prompt,
ChatResponse>
- All Known Implementing Classes:
AzureOpenAiChatClient
,BedrockAnthropicChatClient
,BedrockCohereChatClient
,BedrockLlama2ChatClient
,BedrockTitanChatClient
,MistralAiChatClient
,OllamaChatClient
,OpenAiChatClient
,VertexAiGeminiChatClient
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface StreamingChatClient
extends StreamingModelClient<Prompt,ChatResponse>
-
Method Summary
-
Method Details
-
stream
-
stream
Description copied from interface:StreamingModelClient
Executes a method call to the AI model.- Specified by:
stream
in interfaceStreamingModelClient<Prompt,
ChatResponse> - Parameters:
prompt
- the request object to be sent to the AI model- Returns:
- the streaming response from the AI model
-