Class: SmartAgent::MCPContext

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_agent/mcp_client.rb

Instance Method Summary collapse

Constructor Details

#initializeMCPContext

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_pathObject



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_typeObject



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