Class CompletionRequestConfigurationReferenceByNameScenarioVersion
java.lang.Object
com.sap.ai.sdk.orchestration.model.CompletionRequestConfigurationReferenceByNameScenarioVersion
- All Implemented Interfaces:
CompletionPostRequest
public class CompletionRequestConfigurationReferenceByNameScenarioVersion
extends Object
implements CompletionPostRequest
CompletionRequestConfigurationReferenceByNameScenarioVersion
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for CompletionRequestConfigurationReferenceByNameScenarioVersion. -
Method Summary
Modifier and TypeMethodDescriptionaddMessagesHistoryItem(ChatMessage messagesHistoryItem) Add one messagesHistory instance to thisCompletionRequestConfigurationReferenceByNameScenarioVersion.Set the configRef of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newCompletionRequestConfigurationReferenceByNameScenarioVersioninstance with all required arguments.booleanGet configRefgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theCompletionRequestConfigurationReferenceByNameScenarioVersion.History of chat messages.Get placeholderValuesinthashCode()messagesHistory(List<ChatMessage> messagesHistory) Set the messagesHistory of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance and return the same instance.placeholderValues(Map<String, String> placeholderValues) Set the placeholderValues of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance and return the same instance.putplaceholderValuesItem(String key, String placeholderValuesItem) Put one placeholderValues instance to thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance.voidSet the configRef of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance.voidsetMessagesHistory(List<ChatMessage> messagesHistory) Set the messagesHistory of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance.voidsetPlaceholderValues(Map<String, String> placeholderValues) Set the placeholderValues of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance.toMap()Get the value of all properties of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance including unrecognized properties.toString()
-
Constructor Details
-
CompletionRequestConfigurationReferenceByNameScenarioVersion
protected CompletionRequestConfigurationReferenceByNameScenarioVersion()Default constructor for CompletionRequestConfigurationReferenceByNameScenarioVersion.
-
-
Method Details
-
configRef
@Nonnull public CompletionRequestConfigurationReferenceByNameScenarioVersion configRef(@Nonnull CompletionRequestConfigurationReferenceByNameScenarioVersionConfigRef configRef) Set the configRef of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance and return the same instance.- Parameters:
configRef- The configRef of thisCompletionRequestConfigurationReferenceByNameScenarioVersion- Returns:
- The same instance of this
CompletionRequestConfigurationReferenceByNameScenarioVersionclass
-
getConfigRef
@Nonnull public CompletionRequestConfigurationReferenceByNameScenarioVersionConfigRef getConfigRef()Get configRef- Returns:
- configRef The configRef of this
CompletionRequestConfigurationReferenceByNameScenarioVersioninstance.
-
setConfigRef
public void setConfigRef(@Nonnull CompletionRequestConfigurationReferenceByNameScenarioVersionConfigRef configRef) Set the configRef of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance.- Parameters:
configRef- The configRef of thisCompletionRequestConfigurationReferenceByNameScenarioVersion
-
placeholderValues
@Nonnull public CompletionRequestConfigurationReferenceByNameScenarioVersion placeholderValues(@Nullable Map<String, String> placeholderValues) Set the placeholderValues of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance and return the same instance.- Parameters:
placeholderValues- The placeholderValues of thisCompletionRequestConfigurationReferenceByNameScenarioVersion- Returns:
- The same instance of this
CompletionRequestConfigurationReferenceByNameScenarioVersionclass
-
putplaceholderValuesItem
@Nonnull public CompletionRequestConfigurationReferenceByNameScenarioVersion putplaceholderValuesItem(@Nonnull String key, @Nonnull String placeholderValuesItem) Put one placeholderValues instance to thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance.- Parameters:
key- The String key of this placeholderValues instanceplaceholderValuesItem- The placeholderValues that should be added under the given key- Returns:
- The same instance of type
CompletionRequestConfigurationReferenceByNameScenarioVersion
-
getPlaceholderValues
Get placeholderValues- Returns:
- placeholderValues The placeholderValues of this
CompletionRequestConfigurationReferenceByNameScenarioVersioninstance.
-
setPlaceholderValues
Set the placeholderValues of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance.- Parameters:
placeholderValues- The placeholderValues of thisCompletionRequestConfigurationReferenceByNameScenarioVersion
-
messagesHistory
@Nonnull public CompletionRequestConfigurationReferenceByNameScenarioVersion messagesHistory(@Nullable List<ChatMessage> messagesHistory) Set the messagesHistory of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance and return the same instance.- Parameters:
messagesHistory- History of chat messages. Can be used to provide system and assistant messages to set the context of the conversation. Will be merged with the template message- Returns:
- The same instance of this
CompletionRequestConfigurationReferenceByNameScenarioVersionclass
-
addMessagesHistoryItem
@Nonnull public CompletionRequestConfigurationReferenceByNameScenarioVersion addMessagesHistoryItem(@Nonnull ChatMessage messagesHistoryItem) Add one messagesHistory instance to thisCompletionRequestConfigurationReferenceByNameScenarioVersion.- Parameters:
messagesHistoryItem- The messagesHistory that should be added- Returns:
- The same instance of type
CompletionRequestConfigurationReferenceByNameScenarioVersion
-
getMessagesHistory
History of chat messages. Can be used to provide system and assistant messages to set the context of the conversation. Will be merged with the template message- Returns:
- messagesHistory The messagesHistory of this
CompletionRequestConfigurationReferenceByNameScenarioVersioninstance.
-
setMessagesHistory
Set the messagesHistory of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance.- Parameters:
messagesHistory- History of chat messages. Can be used to provide system and assistant messages to set the context of the conversation. Will be merged with the template message
-
getCustomFieldNames
Get the names of the unrecognizable properties of theCompletionRequestConfigurationReferenceByNameScenarioVersion.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisCompletionRequestConfigurationReferenceByNameScenarioVersioninstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a type-safe, fluent-api builder object to construct a newCompletionRequestConfigurationReferenceByNameScenarioVersioninstance with all required arguments.
-
toMap()instead.