Class ChatCompletionRequestMessageContentPartRefusal
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ChatCompletionRequestMessageContentPartRefusal
- All Implemented Interfaces:
ChatCompletionRequestAssistantMessageContentPart
public class ChatCompletionRequestMessageContentPartRefusal
extends Object
implements ChatCompletionRequestAssistantMessageContentPart
ChatCompletionRequestMessageContentPartRefusal
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of the content part. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theChatCompletionRequestMessageContentPartRefusal.The refusal message generated by the model.getType()The type of the content part.inthashCode()Set the refusal of thisChatCompletionRequestMessageContentPartRefusalinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisChatCompletionRequestMessageContentPartRefusalinstance.voidsetRefusal(String refusal) Set the refusal of thisChatCompletionRequestMessageContentPartRefusalinstance.voidSet the type of thisChatCompletionRequestMessageContentPartRefusalinstance.toMap()Get the value of all properties of thisChatCompletionRequestMessageContentPartRefusalinstance including unrecognized properties.toString()Set the type of thisChatCompletionRequestMessageContentPartRefusalinstance and return the same instance.
-
Constructor Details
-
ChatCompletionRequestMessageContentPartRefusal
public ChatCompletionRequestMessageContentPartRefusal()
-
-
Method Details
-
type
@Nonnull public ChatCompletionRequestMessageContentPartRefusal type(@Nonnull ChatCompletionRequestMessageContentPartRefusal.TypeEnum type) Set the type of thisChatCompletionRequestMessageContentPartRefusalinstance and return the same instance.- Parameters:
type- The type of the content part.- Returns:
- The same instance of this
ChatCompletionRequestMessageContentPartRefusalclass
-
getType
The type of the content part.- Returns:
- type The type of this
ChatCompletionRequestMessageContentPartRefusalinstance.
-
setType
Set the type of thisChatCompletionRequestMessageContentPartRefusalinstance.- Parameters:
type- The type of the content part.
-
refusal
Set the refusal of thisChatCompletionRequestMessageContentPartRefusalinstance and return the same instance.- Parameters:
refusal- The refusal message generated by the model.- Returns:
- The same instance of this
ChatCompletionRequestMessageContentPartRefusalclass
-
getRefusal
The refusal message generated by the model.- Returns:
- refusal The refusal of this
ChatCompletionRequestMessageContentPartRefusalinstance.
-
setRefusal
Set the refusal of thisChatCompletionRequestMessageContentPartRefusalinstance.- Parameters:
refusal- The refusal message generated by the model.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theChatCompletionRequestMessageContentPartRefusal.- 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 thisChatCompletionRequestMessageContentPartRefusalinstance.- 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 thisChatCompletionRequestMessageContentPartRefusalinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisChatCompletionRequestMessageContentPartRefusalinstance. 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
-
toMap()instead.