Class CompletionRequestConfigurationReferenceById
java.lang.Object
com.sap.ai.sdk.orchestration.model.CompletionRequestConfigurationReferenceById
- All Implemented Interfaces:
CompletionPostRequest
public class CompletionRequestConfigurationReferenceById
extends Object
implements CompletionPostRequest
CompletionRequestConfigurationReferenceById
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for CompletionRequestConfigurationReferenceById. -
Method Summary
Modifier and TypeMethodDescriptionaddMessagesHistoryItem(ChatMessage messagesHistoryItem) Add one messagesHistory instance to thisCompletionRequestConfigurationReferenceById.Set the configRef of thisCompletionRequestConfigurationReferenceByIdinstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newCompletionRequestConfigurationReferenceByIdinstance with all required arguments.booleanGet configRefgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theCompletionRequestConfigurationReferenceById.History of chat messages.Get placeholderValuesinthashCode()messagesHistory(List<ChatMessage> messagesHistory) Set the messagesHistory of thisCompletionRequestConfigurationReferenceByIdinstance and return the same instance.placeholderValues(Map<String, String> placeholderValues) Set the placeholderValues of thisCompletionRequestConfigurationReferenceByIdinstance and return the same instance.putplaceholderValuesItem(String key, String placeholderValuesItem) Put one placeholderValues instance to thisCompletionRequestConfigurationReferenceByIdinstance.voidSet the configRef of thisCompletionRequestConfigurationReferenceByIdinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisCompletionRequestConfigurationReferenceByIdinstance.voidsetMessagesHistory(List<ChatMessage> messagesHistory) Set the messagesHistory of thisCompletionRequestConfigurationReferenceByIdinstance.voidsetPlaceholderValues(Map<String, String> placeholderValues) Set the placeholderValues of thisCompletionRequestConfigurationReferenceByIdinstance.toMap()Get the value of all properties of thisCompletionRequestConfigurationReferenceByIdinstance including unrecognized properties.toString()
-
Constructor Details
-
CompletionRequestConfigurationReferenceById
protected CompletionRequestConfigurationReferenceById()Default constructor for CompletionRequestConfigurationReferenceById.
-
-
Method Details
-
configRef
@Nonnull public CompletionRequestConfigurationReferenceById configRef(@Nonnull CompletionRequestConfigurationReferenceByIdConfigRef configRef) Set the configRef of thisCompletionRequestConfigurationReferenceByIdinstance and return the same instance.- Parameters:
configRef- The configRef of thisCompletionRequestConfigurationReferenceById- Returns:
- The same instance of this
CompletionRequestConfigurationReferenceByIdclass
-
getConfigRef
Get configRef- Returns:
- configRef The configRef of this
CompletionRequestConfigurationReferenceByIdinstance.
-
setConfigRef
Set the configRef of thisCompletionRequestConfigurationReferenceByIdinstance.- Parameters:
configRef- The configRef of thisCompletionRequestConfigurationReferenceById
-
placeholderValues
@Nonnull public CompletionRequestConfigurationReferenceById placeholderValues(@Nullable Map<String, String> placeholderValues) Set the placeholderValues of thisCompletionRequestConfigurationReferenceByIdinstance and return the same instance.- Parameters:
placeholderValues- The placeholderValues of thisCompletionRequestConfigurationReferenceById- Returns:
- The same instance of this
CompletionRequestConfigurationReferenceByIdclass
-
putplaceholderValuesItem
@Nonnull public CompletionRequestConfigurationReferenceById putplaceholderValuesItem(@Nonnull String key, @Nonnull String placeholderValuesItem) Put one placeholderValues instance to thisCompletionRequestConfigurationReferenceByIdinstance.- 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
CompletionRequestConfigurationReferenceById
-
getPlaceholderValues
Get placeholderValues- Returns:
- placeholderValues The placeholderValues of this
CompletionRequestConfigurationReferenceByIdinstance.
-
setPlaceholderValues
Set the placeholderValues of thisCompletionRequestConfigurationReferenceByIdinstance.- Parameters:
placeholderValues- The placeholderValues of thisCompletionRequestConfigurationReferenceById
-
messagesHistory
@Nonnull public CompletionRequestConfigurationReferenceById messagesHistory(@Nullable List<ChatMessage> messagesHistory) Set the messagesHistory of thisCompletionRequestConfigurationReferenceByIdinstance 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
CompletionRequestConfigurationReferenceByIdclass
-
addMessagesHistoryItem
@Nonnull public CompletionRequestConfigurationReferenceById addMessagesHistoryItem(@Nonnull ChatMessage messagesHistoryItem) Add one messagesHistory instance to thisCompletionRequestConfigurationReferenceById.- Parameters:
messagesHistoryItem- The messagesHistory that should be added- Returns:
- The same instance of type
CompletionRequestConfigurationReferenceById
-
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
CompletionRequestConfigurationReferenceByIdinstance.
-
setMessagesHistory
Set the messagesHistory of thisCompletionRequestConfigurationReferenceByIdinstance.- 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 theCompletionRequestConfigurationReferenceById.- 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 thisCompletionRequestConfigurationReferenceByIdinstance.- 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 thisCompletionRequestConfigurationReferenceByIdinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisCompletionRequestConfigurationReferenceByIdinstance. 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 newCompletionRequestConfigurationReferenceByIdinstance with all required arguments.
-
toMap()instead.