AgentAgentPromptOverrideConfigurationPromptConfiguration

data class AgentAgentPromptOverrideConfigurationPromptConfiguration(val basePromptTemplate: String, val inferenceConfigurations: List<AgentAgentPromptOverrideConfigurationPromptConfigurationInferenceConfiguration>, val parserMode: String, val promptCreationMode: String, val promptState: String, val promptType: String)

Constructors

constructor(basePromptTemplate: String, inferenceConfigurations: List<AgentAgentPromptOverrideConfigurationPromptConfigurationInferenceConfiguration>, parserMode: String, promptCreationMode: String, promptState: String, promptType: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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.

Link copied to clipboard

Inference parameters to use when the agent invokes a foundation model in the part of the agent sequence defined by the prompt_type. For more information, see Inference parameters for foundation models. See inference_configuration Block for details.

Link copied to clipboard

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 prompt_type. If you set the argument as OVERRIDDEN, the override_lambda argument in the prompt_override_configuration block must be specified with the ARN of a Lambda function. Valid values: DEFAULT, OVERRIDDEN.

Link copied to clipboard

Whether to override the default prompt template for this prompt_type. Set this argument to OVERRIDDEN to use the prompt that you provide in the base_prompt_template. If you leave it as DEFAULT, the agent uses a default prompt template. Valid values: DEFAULT, OVERRIDDEN.

Link copied to clipboard

Whether to allow the agent to carry out the step specified in the prompt_type. If you set this argument to DISABLED, the agent skips that step. Valid Values: ENABLED, DISABLED.

Link copied to clipboard

Step in the agent sequence that this prompt configuration applies to. Valid values: PRE_PROCESSING, ORCHESTRATION, POST_PROCESSING, KNOWLEDGE_BASE_RESPONSE_GENERATION.