AIPromptInferenceConfigurationProperty Struct Added in v2.278.0
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wisdom as wisdom } from 'aws-cdk-lib';
const aIPromptInferenceConfigurationProperty: wisdom.CfnAIPrompt.AIPromptInferenceConfigurationProperty = {
maxTokensToSample: 123,
temperature: 123,
topK: 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_wisdom as wisdom
a_i_prompt_inference_configuration_property = wisdom.CfnAIPrompt.AIPromptInferenceConfigurationProperty(
max_tokens_to_sample=123,
temperature=123,
top_k=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.wisdom.*;
AIPromptInferenceConfigurationProperty aIPromptInferenceConfigurationProperty = AIPromptInferenceConfigurationProperty.builder()
.maxTokensToSample(123)
.temperature(123)
.topK(123)
.topP(123)
.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.Wisdom;
var aIPromptInferenceConfigurationProperty = new AIPromptInferenceConfigurationProperty {
MaxTokensToSample = 123,
Temperature = 123,
TopK = 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"
aIPromptInferenceConfigurationProperty := &AIPromptInferenceConfigurationProperty{
MaxTokensToSample: jsii.Number(123),
Temperature: jsii.Number(123),
TopK: jsii.Number(123),
TopP: jsii.Number(123),
}
Properties
maxTokensToSampleoptionalnumbermax_tokens_to_sampleoptionalint | floatmaxTokensToSampleoptionalNumberMaxTokensToSampleoptionaldoubleMaxTokensToSampleoptional*float64 #temperatureoptionalnumbertemperatureoptionalint | floattemperatureoptionalNumberTemperatureoptionaldoubleTemperatureoptional*float64 #topKoptionalnumbertop_koptionalint | floattopKoptionalNumberTopKoptionaldoubleTopKoptional*float64 #topPoptionalnumbertop_poptionalint | floattopPoptionalNumberTopPoptionaldoubleTopPoptional*float64 #