Class ChatCompletionRequestAssistantMessageFunctionCall
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ChatCompletionRequestAssistantMessageFunctionCall
Deprecated.
Deprecated and replaced by `tool_calls`. The name and arguments of a function that
should be called, as generated by the model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Set the arguments of thisChatCompletionRequestAssistantMessageFunctionCallinstance and return the same instance.booleanDeprecated.Deprecated.The arguments to call the function with, as generated by the model in JSON format.getCustomField(String name) Deprecated.Deprecated.Get the names of the unrecognizable properties of theChatCompletionRequestAssistantMessageFunctionCall.getName()Deprecated.The name of the function to call.inthashCode()Deprecated.Deprecated.Set the name of thisChatCompletionRequestAssistantMessageFunctionCallinstance and return the same instance.voidsetArguments(String arguments) Deprecated.Set the arguments of thisChatCompletionRequestAssistantMessageFunctionCallinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Deprecated.Set an unrecognizable property of thisChatCompletionRequestAssistantMessageFunctionCallinstance.voidDeprecated.Set the name of thisChatCompletionRequestAssistantMessageFunctionCallinstance.toMap()Deprecated.Get the value of all properties of thisChatCompletionRequestAssistantMessageFunctionCallinstance including unrecognized properties.toString()Deprecated.
-
Constructor Details
-
ChatCompletionRequestAssistantMessageFunctionCall
public ChatCompletionRequestAssistantMessageFunctionCall()Deprecated.
-
-
Method Details
-
arguments
@Nonnull public ChatCompletionRequestAssistantMessageFunctionCall arguments(@Nonnull String arguments) Deprecated.Set the arguments of thisChatCompletionRequestAssistantMessageFunctionCallinstance and return the same instance.- Parameters:
arguments- The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.- Returns:
- The same instance of this
ChatCompletionRequestAssistantMessageFunctionCallclass
-
getArguments
Deprecated.The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.- Returns:
- arguments The arguments of this
ChatCompletionRequestAssistantMessageFunctionCallinstance.
-
setArguments
Deprecated.Set the arguments of thisChatCompletionRequestAssistantMessageFunctionCallinstance.- Parameters:
arguments- The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
-
name
Deprecated.Set the name of thisChatCompletionRequestAssistantMessageFunctionCallinstance and return the same instance.- Parameters:
name- The name of the function to call.- Returns:
- The same instance of this
ChatCompletionRequestAssistantMessageFunctionCallclass
-
getName
Deprecated.The name of the function to call.- Returns:
- name The name of this
ChatCompletionRequestAssistantMessageFunctionCallinstance.
-
setName
Deprecated.Set the name of thisChatCompletionRequestAssistantMessageFunctionCallinstance.- Parameters:
name- The name of the function to call.
-
getCustomFieldNames
Deprecated.Get the names of the unrecognizable properties of theChatCompletionRequestAssistantMessageFunctionCall.- 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 thisChatCompletionRequestAssistantMessageFunctionCallinstance.- 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 thisChatCompletionRequestAssistantMessageFunctionCallinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Deprecated.Set an unrecognizable property of thisChatCompletionRequestAssistantMessageFunctionCallinstance. 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.