solana-agent 17.1.5__py3-none-any.whl → 17.1.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -116,3 +116,13 @@ class PluginManager(ABC):
116
116
  def list_plugins(self) -> List[Dict[str, Any]]:
117
117
  """List all registered plugins with their details."""
118
118
  pass
119
+
120
+ @abstractmethod
121
+ def execute_tool(self, tool_name: str, **kwargs) -> Dict[str, Any]:
122
+ """Execute a tool with the given parameters."""
123
+ pass
124
+
125
+ @abstractmethod
126
+ def configure(self, config: Dict[str, Any]) -> None:
127
+ """Configure the plugin manager and all plugins."""
128
+ pass
@@ -13,17 +13,19 @@ from solana_agent.interfaces.plugins.plugins import Tool
13
13
  class ToolRegistry(ToolRegistryInterface):
14
14
  """Instance-based registry that manages tools and their access permissions."""
15
15
 
16
- def __init__(self):
16
+ def __init__(self, config: Dict[str, Any] = None):
17
17
  """Initialize an empty tool registry."""
18
18
  self._tools = {} # name -> tool instance
19
19
  self._agent_tools = {} # agent_name -> [tool_names]
20
+ self._config = config or {}
20
21
 
21
22
  def register_tool(self, tool: Tool) -> bool:
22
23
  """Register a tool with this registry."""
23
24
  try:
25
+ tool.configure(self._config)
26
+
24
27
  self._tools[tool.name] = tool
25
- print(f"Successfully registered tool: {tool.name}")
26
- print(f"Current tools in registry: {list(self._tools.keys())}")
28
+ print(f"Successfully registered and configured tool: {tool.name}")
27
29
  return True
28
30
  except Exception as e:
29
31
  print(f"Error registering tool: {str(e)}")
@@ -26,7 +26,6 @@ class AgentService(AgentServiceInterface):
26
26
  agent_repository: AgentRepository,
27
27
  organization_mission: Optional[OrganizationMission] = None,
28
28
  config: Optional[Dict[str, Any]] = None,
29
- tool_registry: Optional[ToolRegistryInterface] = None,
30
29
  ):
31
30
  """Initialize the agent service.
32
31
 
@@ -35,21 +34,13 @@ class AgentService(AgentServiceInterface):
35
34
  agent_repository: Repository for agent data
36
35
  organization_mission: Optional organization mission and values
37
36
  config: Optional service configuration
38
- tool_registry: Optional tool registry
39
37
  """
40
38
  self.llm_provider = llm_provider
41
39
  self.agent_repository = agent_repository
42
40
  self.organization_mission = organization_mission
43
41
  self.config = config or {}
44
42
  self.last_text_response = ""
45
-
46
- # Initialize tool registry with concrete implementation
47
- if tool_registry:
48
- self.tool_registry = tool_registry
49
- else:
50
- config = self.config
51
- print("Initializing tool registry with config")
52
- self.tool_registry = ToolRegistry(config=config)
43
+ self.tool_registry = ToolRegistry(config=self.config)
53
44
 
54
45
  # Will be set by factory if plugin system is enabled
55
46
  self.plugin_manager = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 17.1.5
3
+ Version: 17.1.7
4
4
  Summary: Agentic IQ
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents,agi
@@ -11,7 +11,7 @@ solana_agent/factories/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
11
11
  solana_agent/factories/agent_factory.py,sha256=7gMfX-80Olp11ZSzPsihH_whjlqbEEmfQD26253EbMk,5699
12
12
  solana_agent/interfaces/__init__.py,sha256=IQs1WIM1FeKP1-kY2FEfyhol_dB-I-VAe2rD6jrVF6k,355
13
13
  solana_agent/interfaces/client/client.py,sha256=2-YxrNH54aDYf68KYSLfFVBktAJkVCGG8TE76yzM8N8,1445
14
- solana_agent/interfaces/plugins/plugins.py,sha256=TMmTXwHhmkdJpIhgADfrpGGGk7PHP7O9Qi89uA26uMI,3013
14
+ solana_agent/interfaces/plugins/plugins.py,sha256=zNrYTs-kO9RrFpFjKqPW8SDAlq3yeIsctJO7gFjuSHs,3326
15
15
  solana_agent/interfaces/providers/data_storage.py,sha256=NqGeFvAzhz9rr-liLPRNCGjooB2EIhe-EVsMmX__b0M,1658
16
16
  solana_agent/interfaces/providers/llm.py,sha256=Ay0-37ppAirGZdGS2LrDq0xAr_WY1_Gis84OXPGsaWs,1653
17
17
  solana_agent/interfaces/providers/memory.py,sha256=oNOH8WZXVW8assDigIWZAWiwkxbpDiKupxA2RB6tQvQ,1010
@@ -21,17 +21,17 @@ solana_agent/interfaces/services/query.py,sha256=bspnm-CN6zjRWnlFnkl34qo0EIW5m2T
21
21
  solana_agent/interfaces/services/routing.py,sha256=gohkt5f9uYDLpu4iDVDk9yj8js9P56R6QHSIDNylgwA,438
22
22
  solana_agent/plugins/__init__.py,sha256=coZdgJKq1ExOaj6qB810i3rEhbjdVlrkN76ozt_Ojgo,193
23
23
  solana_agent/plugins/manager.py,sha256=GWwhfMBn9THwVn7biOvVa25GLthCA1ilWIoDkt5hXNI,5084
24
- solana_agent/plugins/registry.py,sha256=CyZpfjLxV3cVtDnXvCVcMgXg_XEijDDsKuJ0bqG64cA,2900
24
+ solana_agent/plugins/registry.py,sha256=Z41sW_E8vObg16gA9gB7IrcH5mRGFJMeNC879zJUDRY,2948
25
25
  solana_agent/plugins/tools/__init__.py,sha256=c0z7ij42gs94_VJrcn4Y8gUlTxMhsFNY6ahIsNswdLk,231
26
26
  solana_agent/plugins/tools/auto_tool.py,sha256=Z3CcOzwdXpzciH-5yphhd9qt1b9owTxhwC-dYmPF6B0,1489
27
27
  solana_agent/repositories/__init__.py,sha256=fP83w83CGzXLnSdq-C5wbw9EhWTYtqE2lQTgp46-X_4,163
28
28
  solana_agent/repositories/agent.py,sha256=e1rnsQiigkKwJNLKro86a3b6TBiky3GMfmCRc5b_jPw,3187
29
29
  solana_agent/repositories/memory.py,sha256=DrhaVxlE-iAOmX0sfDCqgdPJauYvrnPd7rmVlf6_HGE,4822
30
30
  solana_agent/services/__init__.py,sha256=ab_NXJmwYUCmCrCzuTlZ47bJZINW0Y0F5jfQ9OovidU,163
31
- solana_agent/services/agent.py,sha256=rRcitm8t3tOUHrtg45RKWrROcNVNDht9EMkN61d6lcs,17097
31
+ solana_agent/services/agent.py,sha256=RLsr5b-HbAsjhXxJThPnnTNz6OWPQbnDF4LNl6BGyVg,16740
32
32
  solana_agent/services/query.py,sha256=rm7XlTCcp5NeorIaLUdr7rdxtWCgg1Q1qe5YuI1bumo,11246
33
33
  solana_agent/services/routing.py,sha256=TPJ2Pas4acE93QzMEV6ZP670OtTNrVEPa76fz6urEV4,4996
34
- solana_agent-17.1.5.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
35
- solana_agent-17.1.5.dist-info/METADATA,sha256=SaP9d3cDTvR9W0ozDFjozFP_KVMzhMTWIwJYBTz9Z1E,4720
36
- solana_agent-17.1.5.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
37
- solana_agent-17.1.5.dist-info/RECORD,,
34
+ solana_agent-17.1.7.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
35
+ solana_agent-17.1.7.dist-info/METADATA,sha256=sqs6N7pQNy-3Tnmk0_wD5kxHZZf3GtU5C5seXSmoX7M,4720
36
+ solana_agent-17.1.7.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
37
+ solana_agent-17.1.7.dist-info/RECORD,,