Package dev.langchain4j.agent.tool
Class ToolExecutionRequest.Builder
-
- All Implemented Interfaces:
public final class ToolExecutionRequest.Builder
ToolExecutionRequest
builder static inner class.
-
-
Method Summary
Modifier and Type Method Description ToolExecutionRequest.Builder
id(String id)
Sets the id
.ToolExecutionRequest.Builder
name(String name)
Sets the name
.ToolExecutionRequest.Builder
arguments(String arguments)
Sets the arguments
.ToolExecutionRequest
build()
Returns a ToolExecutionRequest
built from the parameters previously set.-
-
Method Detail
-
id
ToolExecutionRequest.Builder id(String id)
Sets the
id
.- Parameters:
id
- theid
- Returns:
the
Builder
-
name
ToolExecutionRequest.Builder name(String name)
Sets the
name
.- Parameters:
name
- thename
- Returns:
the
Builder
-
arguments
ToolExecutionRequest.Builder arguments(String arguments)
Sets the
arguments
.- Parameters:
arguments
- thearguments
- Returns:
the
Builder
-
build
ToolExecutionRequest build()
Returns a
ToolExecutionRequest
built from the parameters previously set.- Returns:
a
ToolExecutionRequest
-
-
-
-