Package dev.langchain4j.agent.tool
Class ToolExecutionRequest
java.lang.Object
dev.langchain4j.agent.tool.ToolExecutionRequest
Represents an LLM-generated request to execute a tool.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classToolExecutionRequestbuilder static inner class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the arguments of the tool.static ToolExecutionRequest.Builderbuilder()Creates builder to buildToolExecutionRequest.booleaninthashCode()id()Returns the id of the tool.name()Returns the name of the tool.toString()
-
Method Details
-
id
Returns the id of the tool.- Returns:
- the id of the tool.
-
name
Returns the name of the tool.- Returns:
- the name of the tool.
-
arguments
Returns the arguments of the tool.- Returns:
- the arguments of the tool.
-
equals
-
hashCode
public int hashCode() -
toString
-
builder
Creates builder to buildToolExecutionRequest.- Returns:
- created builder
-