Class GraniteGuardian41
java.lang.Object
com.sap.ai.sdk.orchestration.model.GraniteGuardian41
Configuration for IBM Granite Guardian 4.1 filter provider.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for GraniteGuardian41. -
Method Summary
Modifier and TypeMethodDescriptioncategories(GraniteGuardian41Categories categories) Set the categories of thisGraniteGuardian41instance and return the same instance.static GraniteGuardian41.Buildercreate()Create a type-safe, fluent-api builder object to construct a newGraniteGuardian41instance with all required arguments.enableReasoning(Boolean enableReasoning) Set the enableReasoning of thisGraniteGuardian41instance and return the same instance.booleanGet categoriesgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theGraniteGuardian41.inthashCode()Enable reasoning (think) mode for Granite Guardian.voidsetCategories(GraniteGuardian41Categories categories) Set the categories of thisGraniteGuardian41instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisGraniteGuardian41instance.voidsetEnableReasoning(Boolean enableReasoning) Set the enableReasoning of thisGraniteGuardian41instance.toMap()Get the value of all properties of thisGraniteGuardian41instance including unrecognized properties.toString()
-
Constructor Details
-
GraniteGuardian41
protected GraniteGuardian41()Default constructor for GraniteGuardian41.
-
-
Method Details
-
enableReasoning
Set the enableReasoning of thisGraniteGuardian41instance and return the same instance.- Parameters:
enableReasoning- Enable reasoning (think) mode for Granite Guardian. Applies to every configured category. Returns reasoning content when enabled, e.g. 'harm': {'verdict': true, 'reasoning': '...'}- Returns:
- The same instance of this
GraniteGuardian41class
-
isEnableReasoning
Enable reasoning (think) mode for Granite Guardian. Applies to every configured category. Returns reasoning content when enabled, e.g. 'harm': {'verdict': true, 'reasoning': '...'}- Returns:
- enableReasoning The enableReasoning of this
GraniteGuardian41instance.
-
setEnableReasoning
Set the enableReasoning of thisGraniteGuardian41instance.- Parameters:
enableReasoning- Enable reasoning (think) mode for Granite Guardian. Applies to every configured category. Returns reasoning content when enabled, e.g. 'harm': {'verdict': true, 'reasoning': '...'}
-
categories
Set the categories of thisGraniteGuardian41instance and return the same instance.- Parameters:
categories- The categories of thisGraniteGuardian41- Returns:
- The same instance of this
GraniteGuardian41class
-
getCategories
Get categories- Returns:
- categories The categories of this
GraniteGuardian41instance.
-
setCategories
Set the categories of thisGraniteGuardian41instance.- Parameters:
categories- The categories of thisGraniteGuardian41
-
getCustomFieldNames
Get the names of the unrecognizable properties of theGraniteGuardian41.- 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 thisGraniteGuardian41instance.- 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 thisGraniteGuardian41instance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisGraniteGuardian41instance. 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 newGraniteGuardian41instance with all required arguments.
-
toMap()instead.