Class: AWSCDK::BedrockAgentCore::CfnHarness::HarnessOpenAiModelConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnHarness::HarnessOpenAiModelConfigProperty
- Defined in:
- bedrock_agent_core/cfn_harness.rb
Overview
Instance Attribute Summary collapse
- #api_format ⇒ String? readonly
- #api_key_arn ⇒ String readonly
- #max_tokens ⇒ Numeric? readonly
- #model_id ⇒ String readonly
- #temperature ⇒ Numeric? readonly
- #top_p ⇒ Numeric? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api_key_arn:, model_id:, api_format: nil, max_tokens: nil, temperature: nil, top_p: nil) ⇒ HarnessOpenAiModelConfigProperty
constructor
A new instance of HarnessOpenAiModelConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(api_key_arn:, model_id:, api_format: nil, max_tokens: nil, temperature: nil, top_p: nil) ⇒ HarnessOpenAiModelConfigProperty
Returns a new instance of HarnessOpenAiModelConfigProperty.
1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1928 def initialize(api_key_arn:, model_id:, api_format: nil, max_tokens: nil, temperature: nil, top_p: nil) @api_key_arn = api_key_arn Jsii::Type.check_type(@api_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiKeyArn") @model_id = model_id Jsii::Type.check_type(@model_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelId") @api_format = api_format Jsii::Type.check_type(@api_format, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiFormat") unless @api_format.nil? @max_tokens = max_tokens Jsii::Type.check_type(@max_tokens, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxTokens") unless @max_tokens.nil? @temperature = temperature Jsii::Type.check_type(@temperature, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "temperature") unless @temperature.nil? @top_p = top_p Jsii::Type.check_type(@top_p, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "topP") unless @top_p.nil? end |
Instance Attribute Details
#api_format ⇒ String? (readonly)
1951 1952 1953 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1951 def api_format @api_format end |
#api_key_arn ⇒ String (readonly)
1945 1946 1947 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1945 def api_key_arn @api_key_arn end |
#max_tokens ⇒ Numeric? (readonly)
1954 1955 1956 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1954 def max_tokens @max_tokens end |
#model_id ⇒ String (readonly)
1948 1949 1950 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1948 def model_id @model_id end |
#temperature ⇒ Numeric? (readonly)
1957 1958 1959 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1957 def temperature @temperature end |
#top_p ⇒ Numeric? (readonly)
1960 1961 1962 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1960 def top_p @top_p end |
Class Method Details
.jsii_properties ⇒ Object
1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1962 def self.jsii_properties { :api_key_arn => "apiKeyArn", :model_id => "modelId", :api_format => "apiFormat", :max_tokens => "maxTokens", :temperature => "temperature", :top_p => "topP", } end |
Instance Method Details
#to_jsii ⇒ Object
1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 |
# File 'bedrock_agent_core/cfn_harness.rb', line 1973 def to_jsii result = {} result.merge!({ "apiKeyArn" => @api_key_arn, "modelId" => @model_id, "apiFormat" => @api_format, "maxTokens" => @max_tokens, "temperature" => @temperature, "topP" => @top_p, }) result.compact end |