Class ChatCompletionMessageToolCallChunk
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ChatCompletionMessageToolCallChunk
ChatCompletionMessageToolCallChunk
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of the tool. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanSet the function of thisChatCompletionMessageToolCallChunkinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theChatCompletionMessageToolCallChunk.Get functiongetId()The ID of the tool call.getIndex()Get indexgetType()The type of the tool.inthashCode()Set the id of thisChatCompletionMessageToolCallChunkinstance and return the same instance.Set the index of thisChatCompletionMessageToolCallChunkinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisChatCompletionMessageToolCallChunkinstance.voidSet the function of thisChatCompletionMessageToolCallChunkinstance.voidSet the id of thisChatCompletionMessageToolCallChunkinstance.voidSet the index of thisChatCompletionMessageToolCallChunkinstance.voidSet the type of thisChatCompletionMessageToolCallChunkinstance.toMap()Get the value of all properties of thisChatCompletionMessageToolCallChunkinstance including unrecognized properties.toString()Set the type of thisChatCompletionMessageToolCallChunkinstance and return the same instance.
-
Constructor Details
-
ChatCompletionMessageToolCallChunk
public ChatCompletionMessageToolCallChunk()
-
-
Method Details
-
index
Set the index of thisChatCompletionMessageToolCallChunkinstance and return the same instance.- Parameters:
index- The index of thisChatCompletionMessageToolCallChunk- Returns:
- The same instance of this
ChatCompletionMessageToolCallChunkclass
-
getIndex
Get index- Returns:
- index The index of this
ChatCompletionMessageToolCallChunkinstance.
-
setIndex
Set the index of thisChatCompletionMessageToolCallChunkinstance.- Parameters:
index- The index of thisChatCompletionMessageToolCallChunk
-
id
Set the id of thisChatCompletionMessageToolCallChunkinstance and return the same instance.- Parameters:
id- The ID of the tool call.- Returns:
- The same instance of this
ChatCompletionMessageToolCallChunkclass
-
getId
The ID of the tool call.- Returns:
- id The id of this
ChatCompletionMessageToolCallChunkinstance.
-
setId
Set the id of thisChatCompletionMessageToolCallChunkinstance.- Parameters:
id- The ID of the tool call.
-
type
@Nonnull public ChatCompletionMessageToolCallChunk type(@Nullable ChatCompletionMessageToolCallChunk.TypeEnum type) Set the type of thisChatCompletionMessageToolCallChunkinstance and return the same instance.- Parameters:
type- The type of the tool. Currently, only `function` is supported.- Returns:
- The same instance of this
ChatCompletionMessageToolCallChunkclass
-
getType
The type of the tool. Currently, only `function` is supported.- Returns:
- type The type of this
ChatCompletionMessageToolCallChunkinstance.
-
setType
Set the type of thisChatCompletionMessageToolCallChunkinstance.- Parameters:
type- The type of the tool. Currently, only `function` is supported.
-
function
@Nonnull public ChatCompletionMessageToolCallChunk function(@Nullable ChatCompletionMessageToolCallChunkFunction function) Set the function of thisChatCompletionMessageToolCallChunkinstance and return the same instance.- Parameters:
function- The function of thisChatCompletionMessageToolCallChunk- Returns:
- The same instance of this
ChatCompletionMessageToolCallChunkclass
-
getFunction
Get function- Returns:
- function The function of this
ChatCompletionMessageToolCallChunkinstance.
-
setFunction
Set the function of thisChatCompletionMessageToolCallChunkinstance.- Parameters:
function- The function of thisChatCompletionMessageToolCallChunk
-
getCustomFieldNames
Get the names of the unrecognizable properties of theChatCompletionMessageToolCallChunk.- 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 thisChatCompletionMessageToolCallChunkinstance.- 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 thisChatCompletionMessageToolCallChunkinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisChatCompletionMessageToolCallChunkinstance. 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.