Class ChatCompletionFunctions
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ChatCompletionFunctions
Deprecated.
ChatCompletionFunctions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) Deprecated.Set the description of thisChatCompletionFunctionsinstance and return the same instance.booleanDeprecated.getCustomField(String name) Deprecated.Deprecated.Get the names of the unrecognizable properties of theChatCompletionFunctions.Deprecated.A description of what the function does, used by the model to choose when and how to call the function.getName()Deprecated.The name of the function to be called.Deprecated.The parameters the functions accepts, described as a JSON Schema object.inthashCode()Deprecated.Deprecated.Set the name of thisChatCompletionFunctionsinstance and return the same instance.parameters(Map<String, Object> parameters) Deprecated.Set the parameters of thisChatCompletionFunctionsinstance and return the same instance.putparametersItem(String key, Object parametersItem) Deprecated.Put one parameters instance to thisChatCompletionFunctionsinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Deprecated.Set an unrecognizable property of thisChatCompletionFunctionsinstance.voidsetDescription(String description) Deprecated.Set the description of thisChatCompletionFunctionsinstance.voidDeprecated.Set the name of thisChatCompletionFunctionsinstance.voidsetParameters(Map<String, Object> parameters) Deprecated.Set the parameters of thisChatCompletionFunctionsinstance.toMap()Deprecated.Get the value of all properties of thisChatCompletionFunctionsinstance including unrecognized properties.toString()Deprecated.
-
Constructor Details
-
ChatCompletionFunctions
public ChatCompletionFunctions()Deprecated.
-
-
Method Details
-
description
Deprecated.Set the description of thisChatCompletionFunctionsinstance and return the same instance.- Parameters:
description- A description of what the function does, used by the model to choose when and how to call the function.- Returns:
- The same instance of this
ChatCompletionFunctionsclass
-
getDescription
Deprecated.A description of what the function does, used by the model to choose when and how to call the function.- Returns:
- description The description of this
ChatCompletionFunctionsinstance.
-
setDescription
Deprecated.Set the description of thisChatCompletionFunctionsinstance.- Parameters:
description- A description of what the function does, used by the model to choose when and how to call the function.
-
name
Deprecated.Set the name of thisChatCompletionFunctionsinstance and return the same instance.- Parameters:
name- The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.- Returns:
- The same instance of this
ChatCompletionFunctionsclass
-
getName
Deprecated.The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.- Returns:
- name The name of this
ChatCompletionFunctionsinstance.
-
setName
Deprecated.Set the name of thisChatCompletionFunctionsinstance.- Parameters:
name- The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
-
parameters
Deprecated.Set the parameters of thisChatCompletionFunctionsinstance and return the same instance.- Parameters:
parameters- The parameters the functions accepts, described as a JSON Schema object. See the guide](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.- Returns:
- The same instance of this
ChatCompletionFunctionsclass
-
putparametersItem
@Nonnull public ChatCompletionFunctions putparametersItem(@Nonnull String key, @Nullable Object parametersItem) Deprecated.Put one parameters instance to thisChatCompletionFunctionsinstance.- Parameters:
key- The String key of this parameters instanceparametersItem- The parameters that should be added under the given key- Returns:
- The same instance of type
ChatCompletionFunctions
-
getParameters
Deprecated.The parameters the functions accepts, described as a JSON Schema object. See the guide](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.- Returns:
- parameters The parameters of this
ChatCompletionFunctionsinstance.
-
setParameters
Deprecated.Set the parameters of thisChatCompletionFunctionsinstance.- Parameters:
parameters- The parameters the functions accepts, described as a JSON Schema object. See the guide](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting `parameters` defines a function with an empty parameter list.
-
getCustomFieldNames
Deprecated.Get the names of the unrecognizable properties of theChatCompletionFunctions.- 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 thisChatCompletionFunctionsinstance.- 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
Deprecated.Get the value of all properties of thisChatCompletionFunctionsinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Deprecated.Set an unrecognizable property of thisChatCompletionFunctionsinstance. 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
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-
toMap()instead.