Class LastMessagesTargetSelector
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.LastMessagesTargetSelector
- All Implemented Interfaces:
InputFilterTargetSelector
LastMessagesTargetSelector
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for LastMessagesTargetSelector. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a type-safe, fluent-api builder object to construct a newLastMessagesTargetSelectorinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theLastMessagesTargetSelector.Number of messages from the end of the combined message list to include in filtering.inthashCode()lastMessages(Integer lastMessages) Set the lastMessages of thisLastMessagesTargetSelectorinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisLastMessagesTargetSelectorinstance.voidsetLastMessages(Integer lastMessages) Set the lastMessages of thisLastMessagesTargetSelectorinstance.toMap()Get the value of all properties of thisLastMessagesTargetSelectorinstance including unrecognized properties.toString()
-
Constructor Details
-
LastMessagesTargetSelector
protected LastMessagesTargetSelector()Default constructor for LastMessagesTargetSelector.
-
-
Method Details
-
lastMessages
Set the lastMessages of thisLastMessagesTargetSelectorinstance and return the same instance.- Parameters:
lastMessages- Number of messages from the end of the combined message list to include in filtering. Must be >= 1 (0 is not allowed and returns 400 Bad Request). If specified value is larger than the combined message list length, all messages are filtered. Minimum: 1- Returns:
- The same instance of this
LastMessagesTargetSelectorclass
-
getLastMessages
Number of messages from the end of the combined message list to include in filtering. Must be >= 1 (0 is not allowed and returns 400 Bad Request). If specified value is larger than the combined message list length, all messages are filtered. minimum: 1- Returns:
- lastMessages The lastMessages of this
LastMessagesTargetSelectorinstance.
-
setLastMessages
Set the lastMessages of thisLastMessagesTargetSelectorinstance.- Parameters:
lastMessages- Number of messages from the end of the combined message list to include in filtering. Must be >= 1 (0 is not allowed and returns 400 Bad Request). If specified value is larger than the combined message list length, all messages are filtered. Minimum: 1
-
getCustomFieldNames
Get the names of the unrecognizable properties of theLastMessagesTargetSelector.- 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 thisLastMessagesTargetSelectorinstance.- 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 thisLastMessagesTargetSelectorinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisLastMessagesTargetSelectorinstance. 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 newLastMessagesTargetSelectorinstance with all required arguments.
-
toMap()instead.