Package com.pulumi.aws.bedrock.inputs
Class AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.bedrock.inputs.AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder
-
- Enclosing class:
- AgentAgentPromptOverrideConfigurationPromptConfigurationArgs
public static final class AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(AgentAgentPromptOverrideConfigurationPromptConfigurationArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(AgentAgentPromptOverrideConfigurationPromptConfigurationArgs defaults)
-
-
Method Detail
-
basePromptTemplate
public AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder basePromptTemplate(com.pulumi.core.Output<java.lang.String> basePromptTemplate)
- Parameters:
basePromptTemplate- Prompt template with which to replace the default prompt template. You can use placeholder variables in the base prompt template to customize the prompt. For more information, see [Prompt template placeholder variables](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html).- Returns:
- builder
-
basePromptTemplate
public AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder basePromptTemplate(java.lang.String basePromptTemplate)
- Parameters:
basePromptTemplate- Prompt template with which to replace the default prompt template. You can use placeholder variables in the base prompt template to customize the prompt. For more information, see [Prompt template placeholder variables](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html).- Returns:
- builder
-
inferenceConfigurations
public AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder inferenceConfigurations(com.pulumi.core.Output<java.util.List<AgentAgentPromptOverrideConfigurationPromptConfigurationInferenceConfigurationArgs>> inferenceConfigurations)
- Parameters:
inferenceConfigurations- Inference parameters to use when the agent invokes a foundation model in the part of the agent sequence defined by the `promptType`. For more information, see [Inference parameters for foundation models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). See `inferenceConfiguration` Block for details.- Returns:
- builder
-
inferenceConfigurations
public AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder inferenceConfigurations(java.util.List<AgentAgentPromptOverrideConfigurationPromptConfigurationInferenceConfigurationArgs> inferenceConfigurations)
- Parameters:
inferenceConfigurations- Inference parameters to use when the agent invokes a foundation model in the part of the agent sequence defined by the `promptType`. For more information, see [Inference parameters for foundation models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). See `inferenceConfiguration` Block for details.- Returns:
- builder
-
inferenceConfigurations
public AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder inferenceConfigurations(AgentAgentPromptOverrideConfigurationPromptConfigurationInferenceConfigurationArgs... inferenceConfigurations)
- Parameters:
inferenceConfigurations- Inference parameters to use when the agent invokes a foundation model in the part of the agent sequence defined by the `promptType`. For more information, see [Inference parameters for foundation models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). See `inferenceConfiguration` Block for details.- Returns:
- builder
-
parserMode
public AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder parserMode(com.pulumi.core.Output<java.lang.String> parserMode)
- Parameters:
parserMode- Whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the `promptType`. If you set the argument as `OVERRIDDEN`, the `overrideLambda` argument in the `promptOverrideConfiguration` block must be specified with the ARN of a Lambda function. Valid values: `DEFAULT`, `OVERRIDDEN`.- Returns:
- builder
-
parserMode
public AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder parserMode(java.lang.String parserMode)
- Parameters:
parserMode- Whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the `promptType`. If you set the argument as `OVERRIDDEN`, the `overrideLambda` argument in the `promptOverrideConfiguration` block must be specified with the ARN of a Lambda function. Valid values: `DEFAULT`, `OVERRIDDEN`.- Returns:
- builder
-
promptCreationMode
public AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder promptCreationMode(com.pulumi.core.Output<java.lang.String> promptCreationMode)
- Parameters:
promptCreationMode- Whether to override the default prompt template for this `promptType`. Set this argument to `OVERRIDDEN` to use the prompt that you provide in the `basePromptTemplate`. If you leave it as `DEFAULT`, the agent uses a default prompt template. Valid values: `DEFAULT`, `OVERRIDDEN`.- Returns:
- builder
-
promptCreationMode
public AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder promptCreationMode(java.lang.String promptCreationMode)
- Parameters:
promptCreationMode- Whether to override the default prompt template for this `promptType`. Set this argument to `OVERRIDDEN` to use the prompt that you provide in the `basePromptTemplate`. If you leave it as `DEFAULT`, the agent uses a default prompt template. Valid values: `DEFAULT`, `OVERRIDDEN`.- Returns:
- builder
-
promptState
public AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder promptState(com.pulumi.core.Output<java.lang.String> promptState)
- Parameters:
promptState- Whether to allow the agent to carry out the step specified in the `promptType`. If you set this argument to `DISABLED`, the agent skips that step. Valid Values: `ENABLED`, `DISABLED`.- Returns:
- builder
-
promptState
public AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder promptState(java.lang.String promptState)
- Parameters:
promptState- Whether to allow the agent to carry out the step specified in the `promptType`. If you set this argument to `DISABLED`, the agent skips that step. Valid Values: `ENABLED`, `DISABLED`.- Returns:
- builder
-
promptType
public AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder promptType(com.pulumi.core.Output<java.lang.String> promptType)
- Parameters:
promptType- Step in the agent sequence that this prompt configuration applies to. Valid values: `PRE_PROCESSING`, `ORCHESTRATION`, `POST_PROCESSING`, `KNOWLEDGE_BASE_RESPONSE_GENERATION`, `MEMORY_SUMMARIZATION`.- Returns:
- builder
-
promptType
public AgentAgentPromptOverrideConfigurationPromptConfigurationArgs.Builder promptType(java.lang.String promptType)
- Parameters:
promptType- Step in the agent sequence that this prompt configuration applies to. Valid values: `PRE_PROCESSING`, `ORCHESTRATION`, `POST_PROCESSING`, `KNOWLEDGE_BASE_RESPONSE_GENERATION`, `MEMORY_SUMMARIZATION`.- Returns:
- builder
-
build
public AgentAgentPromptOverrideConfigurationPromptConfigurationArgs build()
-
-