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
Modifier and TypeClassDescriptionstatic final class
ToolExecutionRequest
builder static inner class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the arguments of the tool.static ToolExecutionRequest.Builder
builder()
Creates builder to buildToolExecutionRequest
.boolean
int
hashCode()
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
-