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

#content ⇒ Array<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:



1142
1143
1144
1145
1146
1147
1148
1149
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1142

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

#event_type ⇒ Object

Returns the value of attribute event_type

Returns:

  • (Object) —

    the current value of event_type



1142
1143
1144
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1142

def event_type
  @event_type
end

#is_error ⇒ Boolean

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)


1142
1143
1144
1145
1146
1147
1148
1149
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1142

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

#structured_content ⇒ Types::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.



1142
1143
1144
1145
1146
1147
1148
1149
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1142

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