Class ChatCompletionRequestFunctionMessage
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ChatCompletionRequestFunctionMessage
- All Implemented Interfaces:
ChatCompletionRequestMessage
@Deprecated
public class ChatCompletionRequestFunctionMessage
extends Object
implements ChatCompletionRequestMessage
Deprecated.
ChatCompletionRequestFunctionMessage
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.The role of the messages author, in this case `function`. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Set the content of thisChatCompletionRequestFunctionMessageinstance and return the same instance.booleanDeprecated.Deprecated.The contents of the function message.getCustomField(String name) Deprecated.Deprecated.Get the names of the unrecognizable properties of theChatCompletionRequestFunctionMessage.getName()Deprecated.The name of the function to call.getRole()Deprecated.The role of the messages author, in this case `function`.inthashCode()Deprecated.Deprecated.Set the name of thisChatCompletionRequestFunctionMessageinstance and return the same instance.Deprecated.Set the role of thisChatCompletionRequestFunctionMessageinstance and return the same instance.voidsetContent(String content) Deprecated.Set the content of thisChatCompletionRequestFunctionMessageinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Deprecated.Set an unrecognizable property of thisChatCompletionRequestFunctionMessageinstance.voidDeprecated.Set the name of thisChatCompletionRequestFunctionMessageinstance.voidDeprecated.Set the role of thisChatCompletionRequestFunctionMessageinstance.toMap()Deprecated.Get the value of all properties of thisChatCompletionRequestFunctionMessageinstance including unrecognized properties.toString()Deprecated.
-
Constructor Details
-
ChatCompletionRequestFunctionMessage
public ChatCompletionRequestFunctionMessage()Deprecated.
-
-
Method Details
-
role
@Nonnull public ChatCompletionRequestFunctionMessage role(@Nonnull ChatCompletionRequestFunctionMessage.RoleEnum role) Deprecated.Set the role of thisChatCompletionRequestFunctionMessageinstance and return the same instance.- Parameters:
role- The role of the messages author, in this case `function`.- Returns:
- The same instance of this
ChatCompletionRequestFunctionMessageclass
-
getRole
Deprecated.The role of the messages author, in this case `function`.- Returns:
- role The role of this
ChatCompletionRequestFunctionMessageinstance.
-
setRole
Deprecated.Set the role of thisChatCompletionRequestFunctionMessageinstance.- Parameters:
role- The role of the messages author, in this case `function`.
-
content
Deprecated.Set the content of thisChatCompletionRequestFunctionMessageinstance and return the same instance.- Parameters:
content- The contents of the function message.- Returns:
- The same instance of this
ChatCompletionRequestFunctionMessageclass
-
getContent
Deprecated.The contents of the function message.- Returns:
- content The content of this
ChatCompletionRequestFunctionMessageinstance.
-
setContent
Deprecated.Set the content of thisChatCompletionRequestFunctionMessageinstance.- Parameters:
content- The contents of the function message.
-
name
Deprecated.Set the name of thisChatCompletionRequestFunctionMessageinstance and return the same instance.- Parameters:
name- The name of the function to call.- Returns:
- The same instance of this
ChatCompletionRequestFunctionMessageclass
-
getName
Deprecated.The name of the function to call.- Returns:
- name The name of this
ChatCompletionRequestFunctionMessageinstance.
-
setName
Deprecated.Set the name of thisChatCompletionRequestFunctionMessageinstance.- Parameters:
name- The name of the function to call.
-
getCustomFieldNames
Deprecated.Get the names of the unrecognizable properties of theChatCompletionRequestFunctionMessage.- 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 thisChatCompletionRequestFunctionMessageinstance.- 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 thisChatCompletionRequestFunctionMessageinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Deprecated.Set an unrecognizable property of thisChatCompletionRequestFunctionMessageinstance. 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.