Class: Aws::BedrockAgentCore::Types::CodeInterpreterResult

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

Overview

The output produced by executing code in a code interpreter session in Amazon Bedrock. This structure contains the results of code execution, including textual output, structured data, and error information. Agents use these results to generate responses that incorporate computation, data analysis, and visualization.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#contentArray<Types::ContentBlock>

The textual content of the execution result. This includes standard output from the code execution, such as print statements, console output, and text representations of results.

Returns:



349
350
351
352
353
354
355
356
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 349

class CodeInterpreterResult < Struct.new(
  :content,
  :structured_content,
  :is_error,
  :event_type)
  SENSITIVE = []
  include Aws::Structure
end

#event_typeObject

Returns the value of attribute event_type

Returns:

  • (Object)

    the current value of event_type



349
350
351
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 349

def event_type
  @event_type
end

#is_errorBoolean

Indicates whether the result represents an error. If true, the content contains error messages or exception information. If false, the content contains successful execution results.

Returns:

  • (Boolean)


349
350
351
352
353
354
355
356
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 349

class CodeInterpreterResult < Struct.new(
  :content,
  :structured_content,
  :is_error,
  :event_type)
  SENSITIVE = []
  include Aws::Structure
end

#structured_contentTypes::ToolResultStructuredContent

The structured content of the execution result. This includes additional metadata about the execution, such as execution time, memory usage, and structured representations of output data. The format depends on the specific code interpreter and execution context.



349
350
351
352
353
354
355
356
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 349

class CodeInterpreterResult < Struct.new(
  :content,
  :structured_content,
  :is_error,
  :event_type)
  SENSITIVE = []
  include Aws::Structure
end