Package com.aispect.core.client.model
Record Class ToolCall
java.lang.Object
java.lang.Record
com.aispect.core.client.model.ToolCall
- Record Components:
id- Uniquely identifies this tool call IDtype- Tool typefunction- Function call details
AI A tool call request initiated by the model.
When the model is processing the request, if it determines that an external function needs to be called, the object will be returned in the response. It contains the name of the tool and what it needs to run JSON Format parameters.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionToolCall(String id, String type, ToolCall.FunctionCall function) Creates an instance of aToolCallrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.function()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
function
Returns the value of thefunctionrecord component.- Returns:
- the value of the
functionrecord component
-