Class: Tep::MCP::Result

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeResult

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_errorObject

Returns the value of attribute is_error.



35
36
37
# File 'lib/tep/mcp.rb', line 35

def is_error
  @is_error
end

#textObject

Returns the value of attribute text.



35
36
37
# File 'lib/tep/mcp.rb', line 35

def text
  @text
end