Package org.springframework.ai.vertex
Class VertexAiChatClient
java.lang.Object
org.springframework.ai.vertex.VertexAiChatClient
- All Implemented Interfaces:
ChatClient
,ModelClient<Prompt,
ChatResponse>
- Author:
- Christian Tzolov
-
Constructor Summary
ConstructorDescriptionVertexAiChatClient
(VertexAiApi vertexAiApi) VertexAiChatClient
(VertexAiApi vertexAiApi, VertexAiChatOptions 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
-
VertexAiChatClient
-
VertexAiChatClient
-
-
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
-