solana-agent 0.0.12__tar.gz → 0.0.14__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 0.0.12
3
+ Version: 0.0.14
4
4
  Summary: Build self-learning AI Agents
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "solana-agent"
3
- version = "0.0.12"
3
+ version = "0.0.14"
4
4
  description = "Build self-learning AI Agents"
5
5
  authors = ["Bevan Hunt <bevan@bevanhunt.com>"]
6
6
  license = "MIT"
@@ -13,7 +13,7 @@ import inspect
13
13
  import requests
14
14
  from zep_cloud.client import AsyncZep
15
15
  from zep_cloud.client import Zep
16
- from zep_cloud.types import Message, RoleType
16
+ from zep_cloud.types import Message
17
17
  import pandas as pd
18
18
  from pinecone import Pinecone
19
19
 
@@ -178,8 +178,11 @@ class AI:
178
178
  thread_id = thread.id
179
179
  await self._database.save_thread_id(user_id, thread_id)
180
180
  if self._zep:
181
- await self._zep.user.add(user_id=user_id)
182
- await self._zep.memory.add_session(user_id=user_id, session_id=user_id)
181
+ try:
182
+ await self._zep.user.add(user_id=user_id)
183
+ await self._zep.memory.add_session(user_id=user_id, session_id=user_id)
184
+ except Exception:
185
+ pass
183
186
 
184
187
  return thread_id
185
188
 
@@ -696,12 +699,12 @@ class AI:
696
699
  messages = [
697
700
  Message(
698
701
  role="user",
699
- role_type=RoleType["user"],
702
+ role_type="user",
700
703
  content=user_text,
701
704
  ),
702
705
  Message(
703
706
  role="assistant",
704
- role_type=RoleType["assistant"],
707
+ role_type="assistant",
705
708
  content=full_response,
706
709
  ),
707
710
  ]
@@ -810,12 +813,12 @@ class AI:
810
813
  messages = [
811
814
  Message(
812
815
  role="user",
813
- role_type=RoleType["user"],
816
+ role_type="user",
814
817
  content=transcript,
815
818
  ),
816
819
  Message(
817
820
  role="assistant",
818
- role_type=RoleType["assistant"],
821
+ role_type="assistant",
819
822
  content=full_response,
820
823
  ),
821
824
  ]
File without changes
File without changes