Class OrchestrationConfigReference

java.lang.Object
com.sap.ai.sdk.orchestration.OrchestrationConfigReference

public final class OrchestrationConfigReference extends Object
Class representing a reference to an Orchestration config stored in prompt registry.
Since:
1.15.0
  • 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 OrchestrationConfigReference with 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 OrchestrationConfigReference with the specified chat history.
    • fromId

      @Nonnull public static OrchestrationConfigReference fromId(@Nonnull String id)
      Build a reference from an ID.
      Parameters:
      id - the id of the reference.
      Returns:
      a reference object with the specified id.
    • fromScenario

      @Nonnull public static OrchestrationConfigReference.Builder fromScenario(@Nonnull String scenario)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object