Record Class ToolCall
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.ollama.ToolCall
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionToolCall(ToolCall.FunctionCall function) Creates an instance of aToolCallrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static ToolCallfromFunctionCall(String name, Map<String, Object> arguments) function()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.dev.langchain4j.agent.tool.ToolExecutionRequest
-
Constructor Details
-
ToolCall
Creates an instance of aToolCallrecord class.- Parameters:
function- the value for thefunctionrecord component
-
-
Method Details
-
fromFunctionCall
-
toToolExecutionRequest
public dev.langchain4j.agent.tool.ToolExecutionRequest toToolExecutionRequest() -
toString
-
hashCode
-
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). -
function
Returns the value of thefunctionrecord component.- Returns:
- the value of the
functionrecord component
-