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