Class: SmartAgent::MCPContext
- Inherits:
-
Object
- Object
- SmartAgent::MCPContext
- Defined in:
- lib/smart_agent/mcp_client.rb
Instance Method Summary collapse
- #command(path) ⇒ Object
- #command_path ⇒ Object
- #functions(names = :__smart_agent_not_provided__) ⇒ Object
-
#initialize ⇒ MCPContext
constructor
A new instance of MCPContext.
- #mcp_type ⇒ Object
- #type(mcp_type) ⇒ Object
- #url(url) ⇒ Object
Constructor Details
#initialize ⇒ MCPContext
Returns a new instance of MCPContext.
97 98 99 |
# File 'lib/smart_agent/mcp_client.rb', line 97 def initialize @functions = nil end |
Instance Method Details
#command(path) ⇒ Object
113 114 115 |
# File 'lib/smart_agent/mcp_client.rb', line 113 def command(path) @command_path = path end |
#command_path ⇒ Object
109 110 111 |
# File 'lib/smart_agent/mcp_client.rb', line 109 def command_path @command_path end |
#functions(names = :__smart_agent_not_provided__) ⇒ Object
121 122 123 124 125 |
# File 'lib/smart_agent/mcp_client.rb', line 121 def functions(names = :__smart_agent_not_provided__) return @functions if names == :__smart_agent_not_provided__ @functions = names end |
#mcp_type ⇒ Object
105 106 107 |
# File 'lib/smart_agent/mcp_client.rb', line 105 def mcp_type @mcp_type end |
#type(mcp_type) ⇒ Object
101 102 103 |
# File 'lib/smart_agent/mcp_client.rb', line 101 def type(mcp_type) @mcp_type = mcp_type end |
#url(url) ⇒ Object
117 118 119 |
# File 'lib/smart_agent/mcp_client.rb', line 117 def url(url) @command_path = url end |