mezoAgent 0.8.0__py3-none-any.whl → 0.8.2__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.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mezoAgent
3
- Version: 0.8.0
4
- Summary: A Python package for Mezo Agent transactions with LangChain tools
3
+ Version: 0.8.2
4
+ Summary: A Python package for Mezo Agent tools with LangChain tools
5
5
  Author: Dreadwulf, Duck, Digi
6
6
  Requires-Dist: python-dotenv
7
7
  Requires-Dist: web3
@@ -1,9 +1,9 @@
1
- mezo_agent/__init__.py,sha256=fxRf_Z-SEitzT7dp3V0DWmi3nO8yOrb26Avl3kib4QA,795
1
+ mezo_agent/__init__.py,sha256=8I2ipLER-A9_NyWEN8X_JgmrmctQrfGNkIeYfESLmG8,710
2
2
  mezo_agent/characters.py,sha256=wub7y9BrAAdAKWwcNAdgrvhRi2zHMaZNzTr2y3qtbsw,515
3
3
  mezo_agent/chat.py,sha256=ZtNurUDV7UzJjbFyU96DNGy37hO3gl0osn19mRu7ER8,859
4
4
  mezo_agent/config.py,sha256=6xFgk80eiBLTasKGW73Ne8hNhMtx8BbQ_Ef79YOyDlc,3233
5
5
  mezo_agent/parsing.py,sha256=PeR1R6gqzM9VXt7OdWANDoL7GbzMMRjKLzuP10uugEs,5101
6
- mezo_agent/safe_mode_btc_tool.py,sha256=6e8P00Mk570qfPpEiUdMmfvhN3hnHLyOAKrYHu89v4g,3410
6
+ mezo_agent/safe_mode_btc_tool.py,sha256=9kGajd8hXDPBYNF2gBnKC4HxQobph1MHrc-Yk-2mel4,3468
7
7
  mezo_agent/swap_musd_btc.py,sha256=Co-XcfK73spm94VC6qzGY0VYoGwsMDKKHM8ToGh2JxU,4289
8
8
  mezo_agent/token_balance_tool.py,sha256=zOjDJdfYT6LuQzPuAxxNeee1srsepevE71fqboiDSWI,1422
9
9
  mezo_agent/token_price_tool.py,sha256=vD-ukq0D_4zmjIy9bZ9qL44nGctf-hWzkQuTd-0wy2U,930
@@ -13,7 +13,7 @@ mezo_agent/twitter_client.py,sha256=Va8ZQaK5lZjJUq3-bhIJWnDmX4Mmt4kWRW3aKSGbLq8,
13
13
  mezo_agent/twitter_manager.py,sha256=KvxiMOhBmQbLuLoVrAQ77DpAnFIdiDSztsKbZ_3-ar4,2363
14
14
  mezo_agent/utils.py,sha256=hsGtL_iXvUVGnY5aHPQ0v6Jejxd4P4qw0yOtS1omToU,1397
15
15
  mezo_agent/data/new_router.json,sha256=A8U-NVfe1F-hDyR90_SuH8jDAxmzyyHWdJW62j9TZsc,26756
16
- mezoAgent-0.8.0.dist-info/METADATA,sha256=xRxuyZCpP3HcmYhcdGFDnWIZdzSM-zX0c8qm-A_nn_g,273
17
- mezoAgent-0.8.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
18
- mezoAgent-0.8.0.dist-info/top_level.txt,sha256=rrAci_NyTR9z6w_BrQhQrAhzMW_A0NYhVa0x2USl0nQ,11
19
- mezoAgent-0.8.0.dist-info/RECORD,,
16
+ mezoAgent-0.8.2.dist-info/METADATA,sha256=39CXNxtnZCSZs8tzgyMqciAIrwCzMoDUd9gtB9wCmVQ,266
17
+ mezoAgent-0.8.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
18
+ mezoAgent-0.8.2.dist-info/top_level.txt,sha256=rrAci_NyTR9z6w_BrQhQrAhzMW_A0NYhVa0x2USl0nQ,11
19
+ mezoAgent-0.8.2.dist-info/RECORD,,
mezo_agent/__init__.py CHANGED
@@ -2,10 +2,9 @@ from .transaction import mezo_agent_transaction_btc, mezo_agent_musd_transaction
2
2
  from .swap_musd_btc import mezo_agent_swap_musd_btc
3
3
  from .chat import mezo_character_chat
4
4
  from .characters import get_character_prompt
5
- from .tools.token_balance_tool import mezo_agent_token_balance_tool
6
- from .tools.token_price_tool import mezo_agent_token_price_tool
7
- # Import the new Safe Mode BTC Transaction Tool
8
- from .tools.safe_mode_btc_tool import mezo_agent_safe_mode_btc_transaction
5
+ from .token_balance_tool import mezo_agent_token_balance_tool
6
+ from .token_price_tool import mezo_agent_token_price_tool
7
+ from .safe_mode_btc_tool import mezo_agent_safe_mode_btc_transaction
9
8
 
10
9
  __all__ = [
11
10
  "mezo_agent_transaction_btc",
@@ -14,6 +13,6 @@ __all__ = [
14
13
  "mezo_character_chat",
15
14
  "mezo_agent_token_balance_tool",
16
15
  "mezo_agent_token_price_tool",
17
- "mezo_agent_safe_mode_btc_transaction", # Expose new tool
16
+ "mezo_agent_safe_mode_btc_transaction",
18
17
  "get_character_prompt"
19
18
  ]
@@ -3,7 +3,8 @@ from web3.exceptions import Web3Exception
3
3
  import json
4
4
  from mezo_agent.config import web3_instance, sender_address, account
5
5
  from mezo_agent.parsing import extract_transaction_details
6
- from mezo_agent.utils import llm # If you store your ChatOpenAI instance in utils.py
6
+ from langchain_openai import ChatOpenAI
7
+ from .config import OPENAI_API_KEY
7
8
 
8
9
  @tool
9
10
  def mezo_agent_safe_mode_btc_transaction(prompt: str, confirm_before_sending: bool = True) -> str:
@@ -61,6 +62,7 @@ Explain these details in a user-friendly way, covering:
61
62
 
62
63
  Use a concise and helpful tone.
63
64
  """
65
+ llm = ChatOpenAI(temperature=0, openai_api_key=OPENAI_API_KEY)
64
66
  analysis_response = llm.invoke(analysis_prompt)
65
67
  explanation_text = analysis_response.content if analysis_response else "❌ LLM explanation unavailable."
66
68