Interface ChatModel
- All Superinterfaces:
Model<Prompt,,ChatResponse> StreamingChatModel,StreamingModel<Prompt,ChatResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Stringdefault StringExecutes a method call to the AI model.default ChatOptionsdefault reactor.core.publisher.Flux<ChatResponse>Executes a method call to the AI model.Methods inherited from interface org.springframework.ai.chat.model.StreamingChatModel
stream, stream
-
Method Details
-
call
-
call
-
call
Description copied from interface:ModelExecutes a method call to the AI model.- Specified by:
callin interfaceModel<Prompt,ChatResponse> - Parameters:
prompt- the request object to be sent to the AI model- Returns:
- the response from the AI model
-
getDefaultOptions
-
stream
Description copied from interface:StreamingModelExecutes a method call to the AI model.- Specified by:
streamin interfaceStreamingChatModel- Specified by:
streamin interfaceStreamingModel<Prompt,ChatResponse> - Parameters:
prompt- the request object to be sent to the AI model- Returns:
- the streaming response from the AI model
-