Class: RubynCode::LLM::ToolResultBlock
- Inherits:
-
Data
- Object
- Data
- RubynCode::LLM::ToolResultBlock
- Defined in:
- lib/rubyn_code/llm/message_builder.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#is_error ⇒ Object
readonly
Returns the value of attribute is_error.
-
#tool_use_id ⇒ Object
readonly
Returns the value of attribute tool_use_id.
Instance Method Summary collapse
-
#initialize(tool_use_id:, content:, is_error: false) ⇒ ToolResultBlock
constructor
A new instance of ToolResultBlock.
- #type ⇒ Object
Constructor Details
#initialize(tool_use_id:, content:, is_error: false) ⇒ ToolResultBlock
Returns a new instance of ToolResultBlock.
16 17 18 |
# File 'lib/rubyn_code/llm/message_builder.rb', line 16 def initialize(tool_use_id:, content:, is_error: false) super end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content
13 14 15 |
# File 'lib/rubyn_code/llm/message_builder.rb', line 13 def content @content end |
#is_error ⇒ Object (readonly)
Returns the value of attribute is_error
13 14 15 |
# File 'lib/rubyn_code/llm/message_builder.rb', line 13 def is_error @is_error end |
#tool_use_id ⇒ Object (readonly)
Returns the value of attribute tool_use_id
13 14 15 |
# File 'lib/rubyn_code/llm/message_builder.rb', line 13 def tool_use_id @tool_use_id end |
Instance Method Details
#type ⇒ Object
14 |
# File 'lib/rubyn_code/llm/message_builder.rb', line 14 def type = 'tool_result' |