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. -
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()withMessageHistory(List<Message> messagesHistory) Set the chat history.withTemplateParameters(Map<String, String> templateParameters) Set the template parameters.
-
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.
-
withTemplateParameters
@Nonnull public OrchestrationConfigReference withTemplateParameters(@Nonnull Map<String, String> templateParameters) Set the template parameters.- Parameters:
templateParameters- 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
-