Class OrchestrationChatModel
java.lang.Object
com.sap.ai.sdk.orchestration.spring.OrchestrationChatModel
- All Implemented Interfaces:
org.springframework.ai.chat.model.ChatModel,org.springframework.ai.chat.model.StreamingChatModel,org.springframework.ai.model.Model<org.springframework.ai.chat.prompt.Prompt,,org.springframework.ai.chat.model.ChatResponse> org.springframework.ai.model.StreamingModel<org.springframework.ai.chat.prompt.Prompt,org.springframework.ai.chat.model.ChatResponse>
public class OrchestrationChatModel
extends Object
implements org.springframework.ai.chat.model.ChatModel
Spring AI integration for the orchestration service.
- Since:
- 1.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor with a custom client. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.chat.model.ChatModel
call, call, getDefaultOptionsMethods inherited from interface org.springframework.ai.chat.model.StreamingChatModel
stream, stream
-
Constructor Details
-
OrchestrationChatModel
public OrchestrationChatModel()Default constructor.- Since:
- 1.2.0
-
OrchestrationChatModel
Constructor with a custom client.- Parameters:
client- The custom client to use.- Since:
- 1.2.0
-
-
Method Details
-
call
@Nonnull public org.springframework.ai.chat.model.ChatResponse call(@Nonnull org.springframework.ai.chat.prompt.Prompt prompt) - Specified by:
callin interfaceorg.springframework.ai.chat.model.ChatModel- Specified by:
callin interfaceorg.springframework.ai.model.Model<org.springframework.ai.chat.prompt.Prompt,org.springframework.ai.chat.model.ChatResponse>
-
stream
@Nonnull public reactor.core.publisher.Flux<org.springframework.ai.chat.model.ChatResponse> stream(@Nonnull org.springframework.ai.chat.prompt.Prompt prompt) - Specified by:
streamin interfaceorg.springframework.ai.chat.model.ChatModel- Specified by:
streamin interfaceorg.springframework.ai.chat.model.StreamingChatModel- Specified by:
streamin interfaceorg.springframework.ai.model.StreamingModel<org.springframework.ai.chat.prompt.Prompt,org.springframework.ai.chat.model.ChatResponse>
-