Class ResponseFormatText
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ResponseFormatText
- All Implemented Interfaces:
CreateChatCompletionRequestAllOfResponseFormat
public class ResponseFormatText
extends Object
implements CreateChatCompletionRequestAllOfResponseFormat
ResponseFormatText
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of response format being defined: `text` -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theResponseFormatText.getType()The type of response format being defined: `text`inthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisResponseFormatTextinstance.voidSet the type of thisResponseFormatTextinstance.toMap()Get the value of all properties of thisResponseFormatTextinstance including unrecognized properties.toString()Set the type of thisResponseFormatTextinstance and return the same instance.
-
Constructor Details
-
ResponseFormatText
public ResponseFormatText()
-
-
Method Details
-
type
Set the type of thisResponseFormatTextinstance and return the same instance.- Parameters:
type- The type of response format being defined: `text`- Returns:
- The same instance of this
ResponseFormatTextclass
-
getType
The type of response format being defined: `text`- Returns:
- type The type of this
ResponseFormatTextinstance.
-
setType
Set the type of thisResponseFormatTextinstance.- Parameters:
type- The type of response format being defined: `text`
-
getCustomFieldNames
Get the names of the unrecognizable properties of theResponseFormatText.- 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 thisResponseFormatTextinstance.- 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 thisResponseFormatTextinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisResponseFormatTextinstance. 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.