Class ChatCompletionFunctionCallOption
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ChatCompletionFunctionCallOption
Specifying a particular function via `{\"name\": \"my_function\"}`
forces the model to call that function.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theChatCompletionFunctionCallOption.getName()The name of the function to call.inthashCode()Set the name of thisChatCompletionFunctionCallOptioninstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisChatCompletionFunctionCallOptioninstance.voidSet the name of thisChatCompletionFunctionCallOptioninstance.toMap()Get the value of all properties of thisChatCompletionFunctionCallOptioninstance including unrecognized properties.toString()
-
Constructor Details
-
ChatCompletionFunctionCallOption
public ChatCompletionFunctionCallOption()
-
-
Method Details
-
name
Set the name of thisChatCompletionFunctionCallOptioninstance and return the same instance.- Parameters:
name- The name of the function to call.- Returns:
- The same instance of this
ChatCompletionFunctionCallOptionclass
-
getName
The name of the function to call.- Returns:
- name The name of this
ChatCompletionFunctionCallOptioninstance.
-
setName
Set the name of thisChatCompletionFunctionCallOptioninstance.- Parameters:
name- The name of the function to call.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theChatCompletionFunctionCallOption.- 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 thisChatCompletionFunctionCallOptioninstance.- 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 thisChatCompletionFunctionCallOptioninstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisChatCompletionFunctionCallOptioninstance. 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.