solana-agent 17.1.11__py3-none-any.whl → 18.0.1__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.
- solana_agent/interfaces/plugins/plugins.py +2 -2
- solana_agent/interfaces/services/agent.py +1 -1
- solana_agent/plugins/manager.py +2 -2
- solana_agent/plugins/tools/auto_tool.py +1 -1
- solana_agent/services/agent.py +3 -3
- {solana_agent-17.1.11.dist-info → solana_agent-18.0.1.dist-info}/METADATA +2 -1
- {solana_agent-17.1.11.dist-info → solana_agent-18.0.1.dist-info}/RECORD +9 -9
- {solana_agent-17.1.11.dist-info → solana_agent-18.0.1.dist-info}/LICENSE +0 -0
- {solana_agent-17.1.11.dist-info → solana_agent-18.0.1.dist-info}/WHEEL +0 -0
@@ -34,7 +34,7 @@ class Tool(ABC):
|
|
34
34
|
pass
|
35
35
|
|
36
36
|
@abstractmethod
|
37
|
-
def execute(self, **params) -> Dict[str, Any]:
|
37
|
+
async def execute(self, **params) -> Dict[str, Any]:
|
38
38
|
"""Execute the tool with the given parameters."""
|
39
39
|
pass
|
40
40
|
|
@@ -118,7 +118,7 @@ class PluginManager(ABC):
|
|
118
118
|
pass
|
119
119
|
|
120
120
|
@abstractmethod
|
121
|
-
def execute_tool(self, tool_name: str, **kwargs) -> Dict[str, Any]:
|
121
|
+
async def execute_tool(self, tool_name: str, **kwargs) -> Dict[str, Any]:
|
122
122
|
"""Execute a tool with the given parameters."""
|
123
123
|
pass
|
124
124
|
|
@@ -53,7 +53,7 @@ class AgentService(ABC):
|
|
53
53
|
pass
|
54
54
|
|
55
55
|
@abstractmethod
|
56
|
-
def execute_tool(self, agent_name: str, tool_name: str, parameters: Dict[str, Any]) -> Dict[str, Any]:
|
56
|
+
async def execute_tool(self, agent_name: str, tool_name: str, parameters: Dict[str, Any]) -> Dict[str, Any]:
|
57
57
|
"""Execute a tool on behalf of an agent."""
|
58
58
|
pass
|
59
59
|
|
solana_agent/plugins/manager.py
CHANGED
@@ -111,7 +111,7 @@ class PluginManager(PluginManagerInterface):
|
|
111
111
|
for plugin in self._plugins.values()
|
112
112
|
]
|
113
113
|
|
114
|
-
def execute_tool(self, tool_name: str, **kwargs) -> Dict[str, Any]:
|
114
|
+
async def execute_tool(self, tool_name: str, **kwargs) -> Dict[str, Any]:
|
115
115
|
"""Execute a tool with the given parameters.
|
116
116
|
|
117
117
|
Args:
|
@@ -126,7 +126,7 @@ class PluginManager(PluginManagerInterface):
|
|
126
126
|
return {"status": "error", "message": f"Tool {tool_name} not found"}
|
127
127
|
|
128
128
|
try:
|
129
|
-
return tool.execute(**kwargs)
|
129
|
+
return await tool.execute(**kwargs)
|
130
130
|
except Exception as e:
|
131
131
|
return {"status": "error", "message": str(e)}
|
132
132
|
|
@@ -41,7 +41,7 @@ class AutoTool(Tool):
|
|
41
41
|
# Override in subclasses
|
42
42
|
return {}
|
43
43
|
|
44
|
-
def execute(self, **params) -> Dict[str, Any]:
|
44
|
+
async def execute(self, **params) -> Dict[str, Any]:
|
45
45
|
"""Execute the tool with the provided parameters."""
|
46
46
|
# Override in subclasses
|
47
47
|
raise NotImplementedError("Tool must implement execute method")
|
solana_agent/services/agent.py
CHANGED
@@ -145,7 +145,7 @@ class AgentService(AgentServiceInterface):
|
|
145
145
|
"""
|
146
146
|
return self.tool_registry.get_agent_tools(agent_name)
|
147
147
|
|
148
|
-
def execute_tool(self, agent_name: str, tool_name: str, parameters: Dict[str, Any]) -> Dict[str, Any]:
|
148
|
+
async def execute_tool(self, agent_name: str, tool_name: str, parameters: Dict[str, Any]) -> Dict[str, Any]:
|
149
149
|
"""Execute a tool on behalf of an agent."""
|
150
150
|
|
151
151
|
if not self.tool_registry:
|
@@ -165,7 +165,7 @@ class AgentService(AgentServiceInterface):
|
|
165
165
|
}
|
166
166
|
|
167
167
|
try:
|
168
|
-
result = tool.execute(**parameters)
|
168
|
+
result = await tool.execute(**parameters)
|
169
169
|
return result
|
170
170
|
except Exception as e:
|
171
171
|
import traceback
|
@@ -381,7 +381,7 @@ class AgentService(AgentServiceInterface):
|
|
381
381
|
parameters = tool_data.get("parameters", {})
|
382
382
|
|
383
383
|
if tool_name:
|
384
|
-
result = self.execute_tool(
|
384
|
+
result = await self.execute_tool(
|
385
385
|
agent_name, tool_name, parameters)
|
386
386
|
if result.get("status") == "success":
|
387
387
|
return result.get("result", "")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: solana-agent
|
3
|
-
Version:
|
3
|
+
Version: 18.0.1
|
4
4
|
Summary: Agentic IQ
|
5
5
|
License: MIT
|
6
6
|
Keywords: ai,openai,ai agents,agi
|
@@ -29,6 +29,7 @@ Description-Content-Type: text/markdown
|
|
29
29
|
[](https://www.python.org/downloads/)
|
30
30
|
[](https://codecov.io/gh/truemagic-coder/solana-agent)
|
31
31
|
[](https://github.com/truemagic-coder/solana-agent/actions/workflows/ci.yml)
|
32
|
+
[](https://github.com/truemagic-coder/solana-agent)
|
32
33
|
|
33
34
|

|
34
35
|
|
@@ -11,25 +11,25 @@ solana_agent/factories/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
11
11
|
solana_agent/factories/agent_factory.py,sha256=SuFTob-cbbUqc9gm06Sole7wEcxXs3sOS57eW_V2IHc,4886
|
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=
|
14
|
+
solana_agent/interfaces/plugins/plugins.py,sha256=T8HPBsekmzVwfU_Rizp-vtzAeYkMlKMYD7U9d0Wjq9c,3338
|
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
|
18
|
-
solana_agent/interfaces/services/agent.py,sha256=
|
18
|
+
solana_agent/interfaces/services/agent.py,sha256=zxjpGCTmo8P8F8picuyFtjguq-VtcT2sWMWd6H3_XZU,2161
|
19
19
|
solana_agent/interfaces/services/query.py,sha256=bspnm-CN6zjRWnlFnkl34qo0EIW5m2TQR53NTEWMaq4,1271
|
20
20
|
solana_agent/interfaces/services/routing.py,sha256=gohkt5f9uYDLpu4iDVDk9yj8js9P56R6QHSIDNylgwA,438
|
21
21
|
solana_agent/plugins/__init__.py,sha256=coZdgJKq1ExOaj6qB810i3rEhbjdVlrkN76ozt_Ojgo,193
|
22
|
-
solana_agent/plugins/manager.py,sha256=
|
22
|
+
solana_agent/plugins/manager.py,sha256=sdHq6Cqn4juvgS6_3Iu_yjLVAcTRoIkPCqw8fWPkxgw,5096
|
23
23
|
solana_agent/plugins/registry.py,sha256=ZUeczZ9bkdm9G6NBMDpY7sglOW2IrJLiLhboMNAHors,3072
|
24
24
|
solana_agent/plugins/tools/__init__.py,sha256=c0z7ij42gs94_VJrcn4Y8gUlTxMhsFNY6ahIsNswdLk,231
|
25
|
-
solana_agent/plugins/tools/auto_tool.py,sha256=
|
25
|
+
solana_agent/plugins/tools/auto_tool.py,sha256=eDq2P-_D2PM7Dafpn55b1QU5LkM6BLdJGiWB9Wz8d_M,1495
|
26
26
|
solana_agent/repositories/__init__.py,sha256=fP83w83CGzXLnSdq-C5wbw9EhWTYtqE2lQTgp46-X_4,163
|
27
27
|
solana_agent/repositories/memory.py,sha256=cDGoRz8FEkjwCE7j0XvA03-NL0TyROAt4_uwx288Th0,4790
|
28
28
|
solana_agent/services/__init__.py,sha256=ab_NXJmwYUCmCrCzuTlZ47bJZINW0Y0F5jfQ9OovidU,163
|
29
|
-
solana_agent/services/agent.py,sha256=
|
29
|
+
solana_agent/services/agent.py,sha256=w61oAgrRs14xDY6OcpIgZYvqLJLLwkx5Zhr4caoBFtE,16659
|
30
30
|
solana_agent/services/query.py,sha256=qXrvzAyMqESdF8QD3xYaz2vyfR7ndLpsh2TahYQ-LYg,10414
|
31
31
|
solana_agent/services/routing.py,sha256=IPvBicgTYXqQ8iIRaatCsBGQVsOBGdAkq2i6U8hZlOY,6479
|
32
|
-
solana_agent-
|
33
|
-
solana_agent-
|
34
|
-
solana_agent-
|
35
|
-
solana_agent-
|
32
|
+
solana_agent-18.0.1.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
|
33
|
+
solana_agent-18.0.1.dist-info/METADATA,sha256=kC6ricx9IiowGx-p235U-Sxkm5rwcDejcZPL1VERj-8,4854
|
34
|
+
solana_agent-18.0.1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
35
|
+
solana_agent-18.0.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|