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.
- {mezoAgent-0.8.1.dist-info → mezoAgent-0.8.2.dist-info}/METADATA +1 -1
- {mezoAgent-0.8.1.dist-info → mezoAgent-0.8.2.dist-info}/RECORD +5 -5
- mezo_agent/safe_mode_btc_tool.py +3 -1
- {mezoAgent-0.8.1.dist-info → mezoAgent-0.8.2.dist-info}/WHEEL +0 -0
- {mezoAgent-0.8.1.dist-info → mezoAgent-0.8.2.dist-info}/top_level.txt +0 -0
@@ -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=
|
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.
|
17
|
-
mezoAgent-0.8.
|
18
|
-
mezoAgent-0.8.
|
19
|
-
mezoAgent-0.8.
|
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/safe_mode_btc_tool.py
CHANGED
@@ -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
|
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
|
|
File without changes
|
File without changes
|