Class ToolRunnerCreateParams.Builder
-
- All Implemented Interfaces:
public final class ToolRunnerCreateParams.BuilderA builder for ToolRunnerCreateParams.
-
-
Method Summary
Modifier and Type Method Description final ToolRunnerCreateParams.BuilderinitialMessageParams(MessageCreateParams initialMessageParams)final ToolRunnerCreateParams.BuildermaxIterations(Long maxIterations)final ToolRunnerCreateParams.BuilderbetaMemoryToolHandler(BetaMemoryToolHandler betaMemoryToolHandler)Sets the implementation of the beta memory tool handler that will be invoked if memory tool commands are received in tool-use responses. final ToolRunnerCreateParams.Builderthread(Boolean thread)Sets whether the tool runner keeps its conversation in a message thread. final ToolRunnerCreateParamsbuild()Returns an immutable instance of ToolRunnerCreateParams. -
-
Method Detail
-
initialMessageParams
final ToolRunnerCreateParams.Builder initialMessageParams(MessageCreateParams initialMessageParams)
-
maxIterations
final ToolRunnerCreateParams.Builder maxIterations(Long maxIterations)
-
betaMemoryToolHandler
final ToolRunnerCreateParams.Builder betaMemoryToolHandler(BetaMemoryToolHandler betaMemoryToolHandler)
Sets the implementation of the beta memory tool handler that will be invoked if memory tool commands are received in tool-use responses. This is required if initialMessageParams defines a memory tool.
-
thread
final ToolRunnerCreateParams.Builder thread(Boolean thread)
Sets whether the tool runner keeps its conversation in a message thread. Defaults to
true: the first request starts a thread, and each later request sends only the new messages, such as the tool results.With
falsethe runner sends no thread, and sends the whole conversation on every request. The runner also does that, whatever is set here, on a client for Amazon Bedrock or Vertex AI, which take no message threads.
-
build
final ToolRunnerCreateParams build()
Returns an immutable instance of ToolRunnerCreateParams.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.initialMessageParams()
-
-
-
-