Package com.sap.ai.sdk.orchestration
Class OrchestrationConfigReference
java.lang.Object
com.sap.ai.sdk.orchestration.OrchestrationConfigReference
Class representing a reference to an Orchestration config stored in prompt registry.
- Since:
- 1.15.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder to create an Orchestration config reference from scenario, name, and version.static interfaceBuilder to create an Orchestration config reference from scenario, name, and version.static interfaceIntermediate object to build a config reference with the given scenario, name, and version. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic OrchestrationConfigReferenceBuild a reference from an ID.fromScenario(String scenario) Build a reference from a scenario, name, and version.inthashCode()toString()withInputParameters(Map<String, String> inputParameters) Set the template parameters.withMessageHistory(List<Message> messagesHistory) Set the chat history.
-
Method Details
-
withMessageHistory
@Nonnull public OrchestrationConfigReference withMessageHistory(@Nonnull List<Message> messagesHistory) Set the chat history.- Parameters:
messagesHistory- the chat history to set.- Returns:
- a new instance of
OrchestrationConfigReferencewith the specified chat history.
-
withInputParameters
@Nonnull public OrchestrationConfigReference withInputParameters(@Nonnull Map<String, String> inputParameters) Set the template parameters.- Parameters:
inputParameters- the template parameters to set.- Returns:
- a new instance of
OrchestrationConfigReferencewith the specified chat history.
-
fromId
Build a reference from an ID.- Parameters:
id- the id of the reference.- Returns:
- a reference object with the specified id.
-
fromScenario
Build a reference from a scenario, name, and version.- Parameters:
scenario- the scenario of the reference.- Returns:
- a builder object with the specified scenario.
-
equals
-
hashCode
public int hashCode() -
toString
-