Class ChatCompletionMessageToolCall
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ChatCompletionMessageToolCall
ChatCompletionMessageToolCall
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanSet the function of thisChatCompletionMessageToolCallinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theChatCompletionMessageToolCall.Get functiongetId()The ID of the tool call.getType()Get typeinthashCode()Set the id of thisChatCompletionMessageToolCallinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisChatCompletionMessageToolCallinstance.voidSet the function of thisChatCompletionMessageToolCallinstance.voidSet the id of thisChatCompletionMessageToolCallinstance.voidsetType(ToolCallType type) Set the type of thisChatCompletionMessageToolCallinstance.toMap()Get the value of all properties of thisChatCompletionMessageToolCallinstance including unrecognized properties.toString()type(ToolCallType type) Set the type of thisChatCompletionMessageToolCallinstance and return the same instance.
-
Constructor Details
-
ChatCompletionMessageToolCall
public ChatCompletionMessageToolCall()
-
-
Method Details
-
id
Set the id of thisChatCompletionMessageToolCallinstance and return the same instance.- Parameters:
id- The ID of the tool call.- Returns:
- The same instance of this
ChatCompletionMessageToolCallclass
-
getId
The ID of the tool call.- Returns:
- id The id of this
ChatCompletionMessageToolCallinstance.
-
setId
Set the id of thisChatCompletionMessageToolCallinstance.- Parameters:
id- The ID of the tool call.
-
type
Set the type of thisChatCompletionMessageToolCallinstance and return the same instance.- Parameters:
type- The type of thisChatCompletionMessageToolCall- Returns:
- The same instance of this
ChatCompletionMessageToolCallclass
-
getType
Get type- Returns:
- type The type of this
ChatCompletionMessageToolCallinstance.
-
setType
Set the type of thisChatCompletionMessageToolCallinstance.- Parameters:
type- The type of thisChatCompletionMessageToolCall
-
function
@Nonnull public ChatCompletionMessageToolCall function(@Nonnull ChatCompletionMessageToolCallFunction function) Set the function of thisChatCompletionMessageToolCallinstance and return the same instance.- Parameters:
function- The function of thisChatCompletionMessageToolCall- Returns:
- The same instance of this
ChatCompletionMessageToolCallclass
-
getFunction
Get function- Returns:
- function The function of this
ChatCompletionMessageToolCallinstance.
-
setFunction
Set the function of thisChatCompletionMessageToolCallinstance.- Parameters:
function- The function of thisChatCompletionMessageToolCall
-
getCustomFieldNames
Get the names of the unrecognizable properties of theChatCompletionMessageToolCall.- 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 thisChatCompletionMessageToolCallinstance.- 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 thisChatCompletionMessageToolCallinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisChatCompletionMessageToolCallinstance. 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.