Class: Aws::BedrockAgentRuntime::Types::ModelInvocationInput

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb

Overview

The input for the pre-processing step.

  • The type matches the agent step.

  • The text contains the prompt.

  • The inferenceConfiguration, parserMode, and overrideLambda values are set in the PromptOverrideConfiguration object that was set when the agent was created or updated.

Constant Summary collapse

SENSITIVE =
[:text]

Instance Attribute Summary collapse

Instance Attribute Details

#foundation_modelString

The identifier of a foundation model.

Returns:

  • (String)


3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3675

class ModelInvocationInput < Struct.new(
  :foundation_model,
  :inference_configuration,
  :override_lambda,
  :parser_mode,
  :prompt_creation_mode,
  :text,
  :trace_id,
  :type)
  SENSITIVE = [:text]
  include Aws::Structure
end

#inference_configurationTypes::InferenceConfiguration

Specifications about the inference parameters that were provided alongside the prompt. These are specified in the PromptOverrideConfiguration object that was set when the agent was created or updated. For more information, see Inference parameters for foundation models.



3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3675

class ModelInvocationInput < Struct.new(
  :foundation_model,
  :inference_configuration,
  :override_lambda,
  :parser_mode,
  :prompt_creation_mode,
  :text,
  :trace_id,
  :type)
  SENSITIVE = [:text]
  include Aws::Structure
end

#override_lambdaString

The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence.

Returns:

  • (String)


3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3675

class ModelInvocationInput < Struct.new(
  :foundation_model,
  :inference_configuration,
  :override_lambda,
  :parser_mode,
  :prompt_creation_mode,
  :text,
  :trace_id,
  :type)
  SENSITIVE = [:text]
  include Aws::Structure
end

#parser_modeString

Specifies 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.

Returns:

  • (String)


3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3675

class ModelInvocationInput < Struct.new(
  :foundation_model,
  :inference_configuration,
  :override_lambda,
  :parser_mode,
  :prompt_creation_mode,
  :text,
  :trace_id,
  :type)
  SENSITIVE = [:text]
  include Aws::Structure
end

#prompt_creation_modeString

Specifies whether the default prompt template was OVERRIDDEN. If it was, the basePromptTemplate that was set in the PromptOverrideConfiguration object when the agent was created or updated is used instead.

Returns:

  • (String)


3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3675

class ModelInvocationInput < Struct.new(
  :foundation_model,
  :inference_configuration,
  :override_lambda,
  :parser_mode,
  :prompt_creation_mode,
  :text,
  :trace_id,
  :type)
  SENSITIVE = [:text]
  include Aws::Structure
end

#textString

The text that prompted the agent at this step.

Returns:

  • (String)


3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3675

class ModelInvocationInput < Struct.new(
  :foundation_model,
  :inference_configuration,
  :override_lambda,
  :parser_mode,
  :prompt_creation_mode,
  :text,
  :trace_id,
  :type)
  SENSITIVE = [:text]
  include Aws::Structure
end

#trace_idString

The unique identifier of the trace.

Returns:

  • (String)


3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3675

class ModelInvocationInput < Struct.new(
  :foundation_model,
  :inference_configuration,
  :override_lambda,
  :parser_mode,
  :prompt_creation_mode,
  :text,
  :trace_id,
  :type)
  SENSITIVE = [:text]
  include Aws::Structure
end

#typeString

The step in the agent sequence.

Returns:

  • (String)


3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3675

class ModelInvocationInput < Struct.new(
  :foundation_model,
  :inference_configuration,
  :override_lambda,
  :parser_mode,
  :prompt_creation_mode,
  :text,
  :trace_id,
  :type)
  SENSITIVE = [:text]
  include Aws::Structure
end