Class AfterLastRoleTargetSelector
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.AfterLastRoleTargetSelector
- All Implemented Interfaces:
InputFilterTargetSelector
AfterLastRoleTargetSelector
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFilter all messages after the last message with this role in the combined message list.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for AfterLastRoleTargetSelector. -
Method Summary
Modifier and TypeMethodDescriptionafterLastRole(AfterLastRoleTargetSelector.AfterLastRoleEnum afterLastRole) Set the afterLastRole of thisAfterLastRoleTargetSelectorinstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newAfterLastRoleTargetSelectorinstance with all required arguments.booleanFilter all messages after the last message with this role in the combined message list.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAfterLastRoleTargetSelector.inthashCode()voidsetAfterLastRole(AfterLastRoleTargetSelector.AfterLastRoleEnum afterLastRole) Set the afterLastRole of thisAfterLastRoleTargetSelectorinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAfterLastRoleTargetSelectorinstance.toMap()Get the value of all properties of thisAfterLastRoleTargetSelectorinstance including unrecognized properties.toString()
-
Constructor Details
-
AfterLastRoleTargetSelector
protected AfterLastRoleTargetSelector()Default constructor for AfterLastRoleTargetSelector.
-
-
Method Details
-
afterLastRole
@Nonnull public AfterLastRoleTargetSelector afterLastRole(@Nonnull AfterLastRoleTargetSelector.AfterLastRoleEnum afterLastRole) Set the afterLastRole of thisAfterLastRoleTargetSelectorinstance and return the same instance.- Parameters:
afterLastRole- Filter all messages after the last message with this role in the combined message list. If no message is scoped after applying this filter, then the filter is skipped.- Returns:
- The same instance of this
AfterLastRoleTargetSelectorclass
-
getAfterLastRole
Filter all messages after the last message with this role in the combined message list. If no message is scoped after applying this filter, then the filter is skipped.- Returns:
- afterLastRole The afterLastRole of this
AfterLastRoleTargetSelectorinstance.
-
setAfterLastRole
Set the afterLastRole of thisAfterLastRoleTargetSelectorinstance.- Parameters:
afterLastRole- Filter all messages after the last message with this role in the combined message list. If no message is scoped after applying this filter, then the filter is skipped.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAfterLastRoleTargetSelector.- 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 thisAfterLastRoleTargetSelectorinstance.- 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 thisAfterLastRoleTargetSelectorinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAfterLastRoleTargetSelectorinstance. 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 newAfterLastRoleTargetSelectorinstance with all required arguments.
-
toMap()instead.