PromptInferenceConfigurationProperty Struct
Contains inference configurations for the prompt.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const promptInferenceConfigurationProperty: bedrock.CfnPromptVersion.PromptInferenceConfigurationProperty = {
text: {
maxTokens: 123,
stopSequences: ['stopSequences'],
temperature: 123,
topP: 123,
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock
prompt_inference_configuration_property = bedrock.CfnPromptVersion.PromptInferenceConfigurationProperty(
text=bedrock.CfnPromptVersion.PromptModelInferenceConfigurationProperty(
max_tokens=123,
stop_sequences=["stopSequences"],
temperature=123,
top_p=123
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;
PromptInferenceConfigurationProperty promptInferenceConfigurationProperty = PromptInferenceConfigurationProperty.builder()
.text(PromptModelInferenceConfigurationProperty.builder()
.maxTokens(123)
.stopSequences(List.of("stopSequences"))
.temperature(123)
.topP(123)
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;
var promptInferenceConfigurationProperty = new PromptInferenceConfigurationProperty {
Text = new PromptModelInferenceConfigurationProperty {
MaxTokens = 123,
StopSequences = new [] { "stopSequences" },
Temperature = 123,
TopP = 123
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
promptInferenceConfigurationProperty := &PromptInferenceConfigurationProperty{
Text: &PromptModelInferenceConfigurationProperty{
MaxTokens: jsii.Number(123),
StopSequences: []*string{
jsii.String("stopSequences"),
},
Temperature: jsii.Number(123),
TopP: jsii.Number(123),
},
}
Properties
textIResolvable | CfnPromptVersion.PromptModelInferenceConfigurationPropertytexttyping.Union[IResolvable, PromptModelInferenceConfigurationProperty]textIResolvableTextIResolvableTextinterface{}required#Contains inference configurations for a text prompt.