mezoAgent 0.6.1__py3-none-any.whl → 0.6.2__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {mezoAgent-0.6.1.dist-info → mezoAgent-0.6.2.dist-info}/METADATA +1 -1
- {mezoAgent-0.6.1.dist-info → mezoAgent-0.6.2.dist-info}/RECORD +6 -6
- mezo_agent/token_balance_tool.py +3 -3
- mezo_agent/token_price_tool.py +2 -2
- {mezoAgent-0.6.1.dist-info → mezoAgent-0.6.2.dist-info}/WHEEL +0 -0
- {mezoAgent-0.6.1.dist-info → mezoAgent-0.6.2.dist-info}/top_level.txt +0 -0
@@ -4,12 +4,12 @@ mezo_agent/chat.py,sha256=ZtNurUDV7UzJjbFyU96DNGy37hO3gl0osn19mRu7ER8,859
|
|
4
4
|
mezo_agent/config.py,sha256=6xFgk80eiBLTasKGW73Ne8hNhMtx8BbQ_Ef79YOyDlc,3233
|
5
5
|
mezo_agent/parsing.py,sha256=dnS5Qw9V8qvSA_IPgn6nCUnyEfZP9TphO8DnH8oUuiM,5080
|
6
6
|
mezo_agent/swap_musd_btc.py,sha256=Co-XcfK73spm94VC6qzGY0VYoGwsMDKKHM8ToGh2JxU,4289
|
7
|
-
mezo_agent/token_balance_tool.py,sha256=
|
8
|
-
mezo_agent/token_price_tool.py,sha256=
|
7
|
+
mezo_agent/token_balance_tool.py,sha256=fv5Kf22K0HQR7maJnS5SZRTnoY7-3JxKyQDRyDbYXew,1498
|
8
|
+
mezo_agent/token_price_tool.py,sha256=4LmQ_WdYifbIGVL9ExT0dt_U_MtHXYJ7Irj7YoCIexw,948
|
9
9
|
mezo_agent/transaction.py,sha256=YpfWrkEaf0YGM_Kc4cFwlT9GmBGZkeJHWm0VGHs9Gks,4199
|
10
10
|
mezo_agent/utils.py,sha256=XRq--PRJbWlG9kpz99QHWu7mLpYY4MYblm38U1xK4YE,2381
|
11
11
|
mezo_agent/data/new_router.json,sha256=A8U-NVfe1F-hDyR90_SuH8jDAxmzyyHWdJW62j9TZsc,26756
|
12
|
-
mezoAgent-0.6.
|
13
|
-
mezoAgent-0.6.
|
14
|
-
mezoAgent-0.6.
|
15
|
-
mezoAgent-0.6.
|
12
|
+
mezoAgent-0.6.2.dist-info/METADATA,sha256=UkovmR1XjYBNJ54tmD7Hzi-ny5IY0jAbf-K085f2COQ,273
|
13
|
+
mezoAgent-0.6.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
14
|
+
mezoAgent-0.6.2.dist-info/top_level.txt,sha256=rrAci_NyTR9z6w_BrQhQrAhzMW_A0NYhVa0x2USl0nQ,11
|
15
|
+
mezoAgent-0.6.2.dist-info/RECORD,,
|
mezo_agent/token_balance_tool.py
CHANGED
@@ -10,7 +10,8 @@ def mezo_agent_token_balance_tool(balance_prompt: str) -> str:
|
|
10
10
|
:param balance_prompt: User query containing the token symbol.
|
11
11
|
:return: Token balance for the sender's address.
|
12
12
|
"""
|
13
|
-
from mezo_agent.utils import get_token_address_by_symbol
|
13
|
+
from mezo_agent.utils import get_token_address_by_symbol # ✅ Import moved inside function
|
14
|
+
|
14
15
|
details = extract_balance_details(balance_prompt)
|
15
16
|
|
16
17
|
if isinstance(details, str): # Handle extraction errors
|
@@ -24,11 +25,10 @@ def mezo_agent_token_balance_tool(balance_prompt: str) -> str:
|
|
24
25
|
# Get the contract address dynamically
|
25
26
|
token_address = get_token_address_by_symbol(token_symbol)
|
26
27
|
print(f"✅ Using token address: {token_address}") # Debugging
|
27
|
-
print(f"✅ Using ABI: {ERC20_ABI}")
|
28
|
+
print(f"✅ Using ABI: {ERC20_ABI}")
|
28
29
|
|
29
30
|
token_contract = web3_instance.eth.contract(address=token_address, abi=ERC20_ABI)
|
30
31
|
|
31
|
-
|
32
32
|
# Fetch balance
|
33
33
|
balance_wei = token_contract.functions.balanceOf(sender_address).call()
|
34
34
|
balance = web3_instance.from_wei(balance_wei, "ether")
|
mezo_agent/token_price_tool.py
CHANGED
@@ -9,9 +9,9 @@ def mezo_agent_token_price_tool(price_prompt: str) -> str:
|
|
9
9
|
|
10
10
|
:param price_prompt: User query containing the token symbol.
|
11
11
|
:return: Token price details.
|
12
|
-
|
13
12
|
"""
|
14
|
-
from mezo_agent.utils import get_token_price
|
13
|
+
from mezo_agent.utils import get_token_price # ✅ Import moved inside function
|
14
|
+
|
15
15
|
details = extract_price_details(price_prompt)
|
16
16
|
|
17
17
|
if isinstance(details, str): # Handle extraction errors
|
File without changes
|
File without changes
|