solana-agent 17.1.6__py3-none-any.whl → 17.1.8__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.
@@ -53,12 +53,6 @@ class AIAgent(BaseModel):
53
53
  instructions: str = Field(...,
54
54
  description="Base instructions for the agent")
55
55
  specialization: str = Field(..., description="Agent's specialized domain")
56
- created_at: datetime = Field(
57
- default_factory=datetime.now, description="Creation timestamp")
58
- updated_at: datetime = Field(
59
- default_factory=datetime.now, description="Last update timestamp")
60
- description: Optional[str] = Field(
61
- None, description="Agent description or summary")
62
56
 
63
57
  @field_validator("name", "specialization")
64
58
  @classmethod
@@ -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)}")
@@ -40,7 +40,7 @@ class AgentService(AgentServiceInterface):
40
40
  self.organization_mission = organization_mission
41
41
  self.config = config or {}
42
42
  self.last_text_response = ""
43
- self.tool_registry = ToolRegistry()
43
+ self.tool_registry = ToolRegistry(config=self.config)
44
44
 
45
45
  # Will be set by factory if plugin system is enabled
46
46
  self.plugin_manager = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 17.1.6
3
+ Version: 17.1.8
4
4
  Summary: Agentic IQ
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents,agi
@@ -5,13 +5,13 @@ solana_agent/adapters/mongodb_adapter.py,sha256=qqEFbY_v1XGyFXBmwd5HSXSSHnA9wWo-
5
5
  solana_agent/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  solana_agent/client/solana_agent.py,sha256=Q9vnsoezsdhe6-T_tMb7Gr-697D1Bo2qIpr1-ytP1ak,5361
7
7
  solana_agent/domains/__init__.py,sha256=HiC94wVPRy-QDJSSRywCRrhrFfTBeHjfi5z-QfZv46U,168
8
- solana_agent/domains/agent.py,sha256=Ak_hD5gTCzRqAHLmqtxnny0Xki1qAKR7RzLW9LOQBTg,2930
8
+ solana_agent/domains/agent.py,sha256=4kq1IraNxz3bVBiPw5q9tPWtUchkCEcvEKh77MMcjBI,2617
9
9
  solana_agent/domains/routing.py,sha256=UDlgTjUoC9xIBVYu_dnf9-KG_bBgdEXAv_UtDOrYo0w,650
10
10
  solana_agent/factories/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
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=Avn2ZC4QV_2WWHZO91cEhH93vv8WobwaLbygytHoQcs,16722
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.6.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
35
- solana_agent-17.1.6.dist-info/METADATA,sha256=7H0Tk9atcgV6_zze8KNxTAOz7YGPfjZDchWA_Xt_0qA,4720
36
- solana_agent-17.1.6.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
37
- solana_agent-17.1.6.dist-info/RECORD,,
34
+ solana_agent-17.1.8.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
35
+ solana_agent-17.1.8.dist-info/METADATA,sha256=yisHnXQgGDFQ2U6GikPZmhcDDCz-cSmH-enaRNDIBQs,4720
36
+ solana_agent-17.1.8.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
37
+ solana_agent-17.1.8.dist-info/RECORD,,