solana-agent 14.0.1__tar.gz → 14.0.2__tar.gz

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.
Files changed (38) hide show
  1. {solana_agent-14.0.1 → solana_agent-14.0.2}/PKG-INFO +1 -1
  2. {solana_agent-14.0.1 → solana_agent-14.0.2}/pyproject.toml +1 -1
  3. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/client/solana_agent.py +3 -2
  4. solana_agent-14.0.2/solana_agent/interfaces/client/client.py +22 -0
  5. solana_agent-14.0.2/solana_agent/interfaces/services/query.py +22 -0
  6. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/services/query.py +6 -3
  7. solana_agent-14.0.1/solana_agent/interfaces/services/query.py +0 -11
  8. {solana_agent-14.0.1 → solana_agent-14.0.2}/LICENSE +0 -0
  9. {solana_agent-14.0.1 → solana_agent-14.0.2}/README.md +0 -0
  10. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/__init__.py +0 -0
  11. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/adapters/__init__.py +0 -0
  12. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/adapters/llm_adapter.py +0 -0
  13. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/adapters/mongodb_adapter.py +0 -0
  14. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/client/__init__.py +0 -0
  15. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/domains/__init__.py +0 -0
  16. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/domains/agents.py +0 -0
  17. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/domains/routing.py +0 -0
  18. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/factories/__init__.py +0 -0
  19. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/factories/agent_factory.py +0 -0
  20. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/interfaces/__init__.py +0 -0
  21. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/interfaces/plugins/plugins.py +0 -0
  22. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/interfaces/providers/data_storage.py +0 -0
  23. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/interfaces/providers/llm.py +0 -0
  24. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/interfaces/providers/memory.py +0 -0
  25. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/interfaces/repositories/agent.py +0 -0
  26. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/interfaces/services/agent.py +0 -0
  27. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/interfaces/services/routing.py +0 -0
  28. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/plugins/__init__.py +0 -0
  29. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/plugins/manager.py +0 -0
  30. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/plugins/registry.py +0 -0
  31. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/plugins/tools/__init__.py +0 -0
  32. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/plugins/tools/auto_tool.py +0 -0
  33. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/repositories/__init__.py +0 -0
  34. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/repositories/agent.py +0 -0
  35. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/repositories/memory.py +0 -0
  36. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/services/__init__.py +0 -0
  37. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/services/agent.py +0 -0
  38. {solana_agent-14.0.1 → solana_agent-14.0.2}/solana_agent/services/routing.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 14.0.1
3
+ Version: 14.0.2
4
4
  Summary: The Future of Work
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents,agi
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "solana-agent"
3
- version = "14.0.1"
3
+ version = "14.0.2"
4
4
  description = "The Future of Work"
5
5
  authors = ["Bevan Hunt <bevan@bevanhunt.com>"]
6
6
  license = "MIT"
@@ -9,9 +9,10 @@ import importlib.util
9
9
  from typing import AsyncGenerator, Dict, Any
10
10
 
11
11
  from solana_agent.factories.agent_factory import SolanaAgentFactory
12
+ from solana_agent.interfaces.client.client import SolanaAgent
12
13
 
13
14
 
14
- class SolanaAgent:
15
+ class SolanaAgent(SolanaAgent):
15
16
  """Simplified client interface for interacting with the agent system."""
16
17
 
17
18
  def __init__(self, config_path: str = None, config: Dict[str, Any] = None):
@@ -56,7 +57,7 @@ class SolanaAgent:
56
57
  user_id: str,
57
58
  page_num: int = 1,
58
59
  page_size: int = 20,
59
- sort_order: str = "asc" # "asc" for oldest-first, "desc" for newest-first
60
+ sort_order: str = "desc" # "asc" for oldest-first, "desc" for newest-first
60
61
  ) -> Dict[str, Any]:
61
62
  """
62
63
  Get paginated message history for a user.
@@ -0,0 +1,22 @@
1
+ from abc import ABC, abstractmethod
2
+ from typing import Any, AsyncGenerator, Dict
3
+
4
+
5
+ class SolanaAgent(ABC):
6
+ """Interface for the Solana agent system."""
7
+
8
+ @abstractmethod
9
+ async def process(self, user_id: str, message: str) -> AsyncGenerator[str, None]:
10
+ """Process a user message and return the response stream."""
11
+ pass
12
+
13
+ @abstractmethod
14
+ async def get_user_history(
15
+ self,
16
+ user_id: str,
17
+ page_num: int = 1,
18
+ page_size: int = 20,
19
+ sort_order: str = "desc" # "asc" for oldest-first, "desc" for newest-first
20
+ ) -> Dict[str, Any]:
21
+ """Get paginated message history for a user."""
22
+ pass
@@ -0,0 +1,22 @@
1
+ from abc import ABC, abstractmethod
2
+ from typing import Any, AsyncGenerator, Dict
3
+
4
+
5
+ class QueryService(ABC):
6
+ """Interface for processing user queries."""
7
+
8
+ @abstractmethod
9
+ async def process(self, user_id: str, query: str) -> AsyncGenerator[str, None]:
10
+ """Process a query from a user."""
11
+ pass
12
+
13
+ @abstractmethod
14
+ async def get_user_history(
15
+ self,
16
+ user_id: str,
17
+ page_num: int = 1,
18
+ page_size: int = 20,
19
+ sort_order: str = "desc" # "asc" for oldest-first, "desc" for newest-first
20
+ ) -> Dict[str, Any]:
21
+ """Get paginated message history for a user."""
22
+ pass
@@ -90,7 +90,7 @@ class QueryService(QueryServiceInterface):
90
90
  user_id: str,
91
91
  page_num: int = 1,
92
92
  page_size: int = 20,
93
- sort_order: str = "asc" # "asc" for oldest-first, "desc" for newest-first
93
+ sort_order: str = "desc" # "asc" for oldest-first, "desc" for newest-first
94
94
  ) -> Dict[str, Any]:
95
95
  """Get paginated message history for a user.
96
96
 
@@ -146,12 +146,15 @@ class QueryService(QueryServiceInterface):
146
146
  # Format the results
147
147
  formatted_conversations = []
148
148
  for conv in conversations:
149
+ # Convert datetime to Unix timestamp (seconds since epoch)
150
+ timestamp = int(conv.get("timestamp").timestamp()
151
+ ) if conv.get("timestamp") else None
152
+
149
153
  formatted_conversations.append({
150
154
  "id": str(conv.get("_id")),
151
155
  "user_message": conv.get("user_message"),
152
156
  "assistant_message": conv.get("assistant_message"),
153
- "timestamp": conv.get("timestamp").isoformat()
154
- if conv.get("timestamp") else None
157
+ "timestamp": timestamp,
155
158
  })
156
159
 
157
160
  return {
@@ -1,11 +0,0 @@
1
- from abc import ABC, abstractmethod
2
- from typing import AsyncGenerator
3
-
4
-
5
- class QueryService(ABC):
6
- """Interface for processing user queries."""
7
-
8
- @abstractmethod
9
- async def process(self, user_id: str, query: str) -> AsyncGenerator[str, None]:
10
- """Process a query from a user."""
11
- pass
File without changes
File without changes