Class ChatCompletionNamedToolChoiceFunction
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ChatCompletionNamedToolChoiceFunction
ChatCompletionNamedToolChoiceFunction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theChatCompletionNamedToolChoiceFunction.getName()The name of the function to call.inthashCode()Set the name of thisChatCompletionNamedToolChoiceFunctioninstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisChatCompletionNamedToolChoiceFunctioninstance.voidSet the name of thisChatCompletionNamedToolChoiceFunctioninstance.toMap()Get the value of all properties of thisChatCompletionNamedToolChoiceFunctioninstance including unrecognized properties.toString()
-
Constructor Details
-
ChatCompletionNamedToolChoiceFunction
public ChatCompletionNamedToolChoiceFunction()
-
-
Method Details
-
name
Set the name of thisChatCompletionNamedToolChoiceFunctioninstance and return the same instance.- Parameters:
name- The name of the function to call.- Returns:
- The same instance of this
ChatCompletionNamedToolChoiceFunctionclass
-
getName
The name of the function to call.- Returns:
- name The name of this
ChatCompletionNamedToolChoiceFunctioninstance.
-
setName
Set the name of thisChatCompletionNamedToolChoiceFunctioninstance.- Parameters:
name- The name of the function to call.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theChatCompletionNamedToolChoiceFunction.- 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 thisChatCompletionNamedToolChoiceFunctioninstance.- 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 thisChatCompletionNamedToolChoiceFunctioninstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisChatCompletionNamedToolChoiceFunctioninstance. 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.