Class: Aws::BedrockAgentCore::Types::CodeInterpreterResult
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockAgentCore::Types::CodeInterpreterResult
- 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
-
#content ⇒ Array<Types::ContentBlock>
The textual content of the execution result.
-
#event_type ⇒ Object
Returns the value of attribute event_type.
-
#is_error ⇒ Boolean
Indicates whether the result represents an error.
-
#structured_content ⇒ Types::ToolResultStructuredContent
The structured content of the execution result.
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.
229 230 231 232 233 234 235 236 |
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 229 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
229 230 231 |
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 229 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.
229 230 231 232 233 234 235 236 |
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 229 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.
229 230 231 232 233 234 235 236 |
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 229 class CodeInterpreterResult < Struct.new( :content, :structured_content, :is_error, :event_type) SENSITIVE = [] include Aws::Structure end |