mezoAgent 0.8.1__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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mezoAgent
3
- Version: 0.8.1
3
+ Version: 0.8.2
4
4
  Summary: A Python package for Mezo Agent tools with LangChain tools
5
5
  Author: Dreadwulf, Duck, Digi
6
6
  Requires-Dist: python-dotenv
@@ -3,7 +3,7 @@ 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.1.dist-info/METADATA,sha256=TdeJWZRW9v9k3vhAwhHiJ5jXqSzP9KWeFwGX_UF2Ig4,266
17
- mezoAgent-0.8.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
18
- mezoAgent-0.8.1.dist-info/top_level.txt,sha256=rrAci_NyTR9z6w_BrQhQrAhzMW_A0NYhVa0x2USl0nQ,11
19
- mezoAgent-0.8.1.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,,
@@ -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