Package dev.langchain4j.agent.tool
Class ToolExecutionRequest.Builder
-
- All Implemented Interfaces:
public final class ToolExecutionRequest.BuilderToolExecutionRequestbuilder static inner class.
-
-
Method Summary
Modifier and Type Method Description ToolExecutionRequest.Builderid(String id)Sets the id.ToolExecutionRequest.Buildername(String name)Sets the name.ToolExecutionRequest.Builderarguments(String arguments)Sets the arguments.ToolExecutionRequestbuild()Returns a ToolExecutionRequestbuilt 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
ToolExecutionRequestbuilt from the parameters previously set.- Returns:
a
ToolExecutionRequest
-
-
-
-