Class ToolCallChunk
java.lang.Object
com.sap.ai.sdk.orchestration.model.ToolCallChunk
ToolCallChunk
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static enumThe type of the tool. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolCallChunk.Buildercreate()Create a type-safe, fluent-api builder object to construct a newToolCallChunkinstance with all required arguments.booleanfunction(ToolCallChunkFunction function) Set the function of thisToolCallChunkinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theToolCallChunk.Get functiongetId()The ID of the tool call.getIndex()Get indexgetType()The type of the tool.inthashCode()Set the id of thisToolCallChunkinstance and return the same instance.Set the index of thisToolCallChunkinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisToolCallChunkinstance.voidsetFunction(ToolCallChunkFunction function) Set the function of thisToolCallChunkinstance.voidSet the id of thisToolCallChunkinstance.voidSet the index of thisToolCallChunkinstance.voidSet the type of thisToolCallChunkinstance.toMap()Get the value of all properties of thisToolCallChunkinstance including unrecognized properties.toString()type(ToolCallChunk.TypeEnum type) Set the type of thisToolCallChunkinstance and return the same instance.
-
Constructor Details
-
ToolCallChunk
protected ToolCallChunk()Default constructor for ToolCallChunk.
-
-
Method Details
-
index
Set the index of thisToolCallChunkinstance and return the same instance.- Parameters:
index- The index of thisToolCallChunk- Returns:
- The same instance of this
ToolCallChunkclass
-
getIndex
Get index- Returns:
- index The index of this
ToolCallChunkinstance.
-
setIndex
Set the index of thisToolCallChunkinstance.- Parameters:
index- The index of thisToolCallChunk
-
id
Set the id of thisToolCallChunkinstance and return the same instance.- Parameters:
id- The ID of the tool call.- Returns:
- The same instance of this
ToolCallChunkclass
-
getId
The ID of the tool call.- Returns:
- id The id of this
ToolCallChunkinstance.
-
setId
Set the id of thisToolCallChunkinstance.- Parameters:
id- The ID of the tool call.
-
type
Set the type of thisToolCallChunkinstance and return the same instance.- Parameters:
type- The type of the tool. Currently, only `function` is supported.- Returns:
- The same instance of this
ToolCallChunkclass
-
getType
The type of the tool. Currently, only `function` is supported.- Returns:
- type The type of this
ToolCallChunkinstance.
-
setType
Set the type of thisToolCallChunkinstance.- Parameters:
type- The type of the tool. Currently, only `function` is supported.
-
function
Set the function of thisToolCallChunkinstance and return the same instance.- Parameters:
function- The function of thisToolCallChunk- Returns:
- The same instance of this
ToolCallChunkclass
-
getFunction
Get function- Returns:
- function The function of this
ToolCallChunkinstance.
-
setFunction
Set the function of thisToolCallChunkinstance.- Parameters:
function- The function of thisToolCallChunk
-
getCustomFieldNames
Get the names of the unrecognizable properties of theToolCallChunk.- 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 thisToolCallChunkinstance.- 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 thisToolCallChunkinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisToolCallChunkinstance. 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
-
create
Create a type-safe, fluent-api builder object to construct a newToolCallChunkinstance with all required arguments.
-
toMap()instead.