Class VertexAiPaLm2ChatClient
java.lang.Object
org.springframework.ai.vertexai.palm2.VertexAiPaLm2ChatClient
- All Implemented Interfaces:
ChatClient
,ModelClient<Prompt,
ChatResponse>
- Author:
- Christian Tzolov
-
Constructor Summary
ConstructorDescriptionVertexAiPaLm2ChatClient
(VertexAiPaLm2Api vertexAiApi) VertexAiPaLm2ChatClient
(VertexAiPaLm2Api vertexAiApi, VertexAiPaLm2ChatOptions defaultOptions) -
Method Summary
Modifier and TypeMethodDescriptionExecutes a method call to the AI model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ai.chat.ChatClient
call
-
Constructor Details
-
VertexAiPaLm2ChatClient
-
VertexAiPaLm2ChatClient
public VertexAiPaLm2ChatClient(VertexAiPaLm2Api vertexAiApi, VertexAiPaLm2ChatOptions defaultOptions)
-
-
Method Details
-
call
Description copied from interface:ModelClient
Executes a method call to the AI model.- Specified by:
call
in interfaceChatClient
- Specified by:
call
in interfaceModelClient<Prompt,
ChatResponse> - Parameters:
prompt
- the request object to be sent to the AI model- Returns:
- the response from the AI model
-