Interface ToolArguments.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ToolArguments.Builder,
,ToolArguments> SdkBuilder<ToolArguments.Builder,
,ToolArguments> SdkPojo
- Enclosing class:
ToolArguments
-
Method Summary
Modifier and TypeMethodDescriptionclearContext
(Boolean clearContext) Whether to clear the context for the tool.The code to execute in a code interpreter session.The command to execute with the tool.content
(Collection<InputContentBlock> content) The content for the tool operation.content
(Consumer<InputContentBlock.Builder>... content) The content for the tool operation.content
(InputContentBlock... content) The content for the tool operation.directoryPath
(String directoryPath) The directory path for the tool operation.The programming language of the code to execute.language
(ProgrammingLanguage language) The programming language of the code to execute.The path for the tool operation.The paths for the tool operation.paths
(Collection<String> paths) The paths for the tool operation.The identifier of the task for the tool operation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
code
The code to execute in a code interpreter session. This is the source code in the specified programming language that will be executed by the code interpreter.
- Parameters:
code
- The code to execute in a code interpreter session. This is the source code in the specified programming language that will be executed by the code interpreter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
language
The programming language of the code to execute. This tells the code interpreter which language runtime to use for execution. Common values include 'python', 'javascript', and 'r'.
- Parameters:
language
- The programming language of the code to execute. This tells the code interpreter which language runtime to use for execution. Common values include 'python', 'javascript', and 'r'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
language
The programming language of the code to execute. This tells the code interpreter which language runtime to use for execution. Common values include 'python', 'javascript', and 'r'.
- Parameters:
language
- The programming language of the code to execute. This tells the code interpreter which language runtime to use for execution. Common values include 'python', 'javascript', and 'r'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clearContext
Whether to clear the context for the tool.
- Parameters:
clearContext
- Whether to clear the context for the tool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
The command to execute with the tool.
- Parameters:
command
- The command to execute with the tool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
path
The path for the tool operation.
- Parameters:
path
- The path for the tool operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paths
The paths for the tool operation.
- Parameters:
paths
- The paths for the tool operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paths
The paths for the tool operation.
- Parameters:
paths
- The paths for the tool operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content for the tool operation.
- Parameters:
content
- The content for the tool operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content for the tool operation.
- Parameters:
content
- The content for the tool operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content for the tool operation.
This is a convenience method that creates an instance of theInputContentBlock.Builder
avoiding the need to create one manually viaInputContentBlock.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontent(List<InputContentBlock>)
.- Parameters:
content
- a consumer that will call methods onInputContentBlock.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
directoryPath
The directory path for the tool operation.
- Parameters:
directoryPath
- The directory path for the tool operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskId
The identifier of the task for the tool operation.
- Parameters:
taskId
- The identifier of the task for the tool operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-