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.
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_type ⇒ Object
Returns the value of attribute 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_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.
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_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.
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 |