Package com.sap.ai.sdk.orchestration
Class OrchestrationPrompt
java.lang.Object
com.sap.ai.sdk.orchestration.OrchestrationPrompt
Represents a request that can be sent to the orchestration service, containing messages and
configuration for the orchestration modules. Prompts may be reused across multiple requests.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOrchestrationPrompt(Message message, Message... messages) Initialize a prompt from the given messages.OrchestrationPrompt(String message) Initialize a prompt with the given user message.OrchestrationPrompt(Map<String, String> inputParams, Message... messages) Initialize a prompt based on template variables. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()messageHistory(List<Message> messagesHistory) Set the chat history of this prompt.toString()
-
Constructor Details
-
OrchestrationPrompt
Initialize a prompt with the given user message.- Parameters:
message- A user message.
-
OrchestrationPrompt
Initialize a prompt from the given messages.- Parameters:
message- The first message.messages- Optionally, more messages.
-
OrchestrationPrompt
Initialize a prompt based on template variables.- Parameters:
inputParams- The input parameters as entries of template variables and their contents.messages- The messages to be sent to the orchestration service.
-
-
Method Details
-
messageHistory
Set the chat history of this prompt.- Parameters:
messagesHistory- The chat history to add.- Returns:
- The current instance of
OrchestrationPromptwith the changed chat history.
-
equals
-
hashCode
public int hashCode() -
toString
-