solana-agent 4.0.2__py3-none-any.whl → 4.0.3__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/ai.py CHANGED
@@ -766,7 +766,7 @@ class AI:
766
766
  {
767
767
  "role": "user",
768
768
  "content": user_text,
769
- }
769
+ },
770
770
  ],
771
771
  stream=True,
772
772
  )
@@ -837,6 +837,16 @@ class AI:
837
837
  }
838
838
  self._database.save_message(user_id, metadata)
839
839
 
840
+ if self._zep:
841
+ messages = [
842
+ Message(
843
+ role="assistant",
844
+ role_type="assistant",
845
+ content=final_response,
846
+ ),
847
+ ]
848
+ await self._zep.memory.add(session_id=user_id, messages=messages)
849
+
840
850
  async def conversation(
841
851
  self,
842
852
  user_id: str,
@@ -954,7 +964,7 @@ class AI:
954
964
  {
955
965
  "role": "user",
956
966
  "content": transcript,
957
- }
967
+ },
958
968
  ],
959
969
  stream=True,
960
970
  )
@@ -1025,6 +1035,16 @@ class AI:
1025
1035
  }
1026
1036
  self._database.save_message(user_id, metadata)
1027
1037
 
1038
+ if self._zep:
1039
+ messages = [
1040
+ Message(
1041
+ role="assistant",
1042
+ role_type="assistant",
1043
+ content=final_response,
1044
+ ),
1045
+ ]
1046
+ await self._zep.memory.add(session_id=user_id, messages=messages)
1047
+
1028
1048
  # Generate and stream the audio response
1029
1049
  with self._client.audio.speech.with_streaming_response.create(
1030
1050
  model="tts-1",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 4.0.2
3
+ Version: 4.0.3
4
4
  Summary: Build self-learning AI Agents
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents
@@ -0,0 +1,6 @@
1
+ solana_agent/__init__.py,sha256=zpfnWqANd3OHGWm7NCF5Y6m01BWG4NkNk8SK9Ex48nA,18
2
+ solana_agent/ai.py,sha256=t1BJtTZ7RHzUL_5DNCrJHBGxV6xWk2-x5fhsO0pM6p8,44136
3
+ solana_agent-4.0.3.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
4
+ solana_agent-4.0.3.dist-info/METADATA,sha256=rguDaFGlywlBNdYHLjWjJzER1fXFrTis0lFPNXIIu7I,4808
5
+ solana_agent-4.0.3.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
6
+ solana_agent-4.0.3.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- solana_agent/__init__.py,sha256=zpfnWqANd3OHGWm7NCF5Y6m01BWG4NkNk8SK9Ex48nA,18
2
- solana_agent/ai.py,sha256=msLaO6JFc8O-WmvGaYvtrww1ENih8b2WJYncYteFko4,43516
3
- solana_agent-4.0.2.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
4
- solana_agent-4.0.2.dist-info/METADATA,sha256=pWYzK1DHb4uN69lsF4VBT7i6iim3g20QWn5_qomhkso,4808
5
- solana_agent-4.0.2.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
6
- solana_agent-4.0.2.dist-info/RECORD,,