Class: Tep::MCP::Result
- Inherits:
-
Object
- Object
- Tep::MCP::Result
- Defined in:
- lib/tep/mcp.rb
Overview
Tool result – carries either a text content block (the only content type supported in chunk 5.1) or an error marker.
Instance Attribute Summary collapse
-
#is_error ⇒ Object
Returns the value of attribute is_error.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize ⇒ Result
Returns a new instance of Result.
37 38 39 40 |
# File 'lib/tep/mcp.rb', line 37 def initialize @text = "" @is_error = 0 end |
Instance Attribute Details
#is_error ⇒ Object
Returns the value of attribute is_error.
35 36 37 |
# File 'lib/tep/mcp.rb', line 35 def is_error @is_error end |
#text ⇒ Object
Returns the value of attribute text.
35 36 37 |
# File 'lib/tep/mcp.rb', line 35 def text @text end |