Interface DatasetExecutionConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DatasetExecutionConfig.Builder,,DatasetExecutionConfig> SdkBuilder<DatasetExecutionConfig.Builder,,DatasetExecutionConfig> SdkPojo
- Enclosing class:
DatasetExecutionConfig
-
Method Summary
Modifier and TypeMethodDescriptiondefault DatasetExecutionConfig.BuilderagentInvocation(Consumer<AgentInvocationConfig.Builder> agentInvocation) Specifies the agent runtime endpoint and the request template that the batch evaluation uses to invoke the agent for each scenario in the dataset.agentInvocation(AgentInvocationConfig agentInvocation) Specifies the agent runtime endpoint and the request template that the batch evaluation uses to invoke the agent for each scenario in the dataset.default DatasetExecutionConfig.Builderdataset(Consumer<DatasetSource.Builder> dataset) The dataset whose scenarios are sent to the agent.dataset(DatasetSource dataset) The dataset whose scenarios are sent to the agent.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
dataset
The dataset whose scenarios are sent to the agent. The dataset must use the predefined evaluation schema, and the version that runs must contain between 1 and 1,000 scenarios.
- Parameters:
dataset- The dataset whose scenarios are sent to the agent. The dataset must use the predefined evaluation schema, and the version that runs must contain between 1 and 1,000 scenarios.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataset
The dataset whose scenarios are sent to the agent. The dataset must use the predefined evaluation schema, and the version that runs must contain between 1 and 1,000 scenarios.
This is a convenience method that creates an instance of theDatasetSource.Builderavoiding the need to create one manually viaDatasetSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataset(DatasetSource).- Parameters:
dataset- a consumer that will call methods onDatasetSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
agentInvocation
Specifies the agent runtime endpoint and the request template that the batch evaluation uses to invoke the agent for each scenario in the dataset.
- Parameters:
agentInvocation- Specifies the agent runtime endpoint and the request template that the batch evaluation uses to invoke the agent for each scenario in the dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentInvocation
default DatasetExecutionConfig.Builder agentInvocation(Consumer<AgentInvocationConfig.Builder> agentInvocation) Specifies the agent runtime endpoint and the request template that the batch evaluation uses to invoke the agent for each scenario in the dataset.
This is a convenience method that creates an instance of theAgentInvocationConfig.Builderavoiding the need to create one manually viaAgentInvocationConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toagentInvocation(AgentInvocationConfig).- Parameters:
agentInvocation- a consumer that will call methods onAgentInvocationConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-