mezoAgent 0.5.1__py3-none-any.whl → 0.5.3__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {mezoAgent-0.5.1.dist-info → mezoAgent-0.5.3.dist-info}/METADATA +1 -1
- {mezoAgent-0.5.1.dist-info → mezoAgent-0.5.3.dist-info}/RECORD +6 -6
- mezo_agent/config.py +5 -1
- mezo_agent/parsing.py +5 -10
- {mezoAgent-0.5.1.dist-info → mezoAgent-0.5.3.dist-info}/WHEEL +0 -0
- {mezoAgent-0.5.1.dist-info → mezoAgent-0.5.3.dist-info}/top_level.txt +0 -0
@@ -1,14 +1,14 @@
|
|
1
1
|
mezo_agent/__init__.py,sha256=naG5ZIXKDWTRlqdx2oi1zJcRZpJBO9ugVkW0MaPkZuk,497
|
2
2
|
mezo_agent/characters.py,sha256=wub7y9BrAAdAKWwcNAdgrvhRi2zHMaZNzTr2y3qtbsw,515
|
3
3
|
mezo_agent/chat.py,sha256=ZtNurUDV7UzJjbFyU96DNGy37hO3gl0osn19mRu7ER8,859
|
4
|
-
mezo_agent/config.py,sha256=
|
5
|
-
mezo_agent/parsing.py,sha256=
|
4
|
+
mezo_agent/config.py,sha256=6xFgk80eiBLTasKGW73Ne8hNhMtx8BbQ_Ef79YOyDlc,3233
|
5
|
+
mezo_agent/parsing.py,sha256=v5AiLfZ8Rvm46gek7QX2OmeLFO8xhvQOH_yCc6GNlLA,3850
|
6
6
|
mezo_agent/swap_musd_btc.py,sha256=Co-XcfK73spm94VC6qzGY0VYoGwsMDKKHM8ToGh2JxU,4289
|
7
7
|
mezo_agent/token_balance_tool.py,sha256=MxvHzMLWbcwnJ34LDiefEz3_hHTKd6asNOEhdVs8VCY,1335
|
8
8
|
mezo_agent/transaction.py,sha256=YpfWrkEaf0YGM_Kc4cFwlT9GmBGZkeJHWm0VGHs9Gks,4199
|
9
9
|
mezo_agent/utils.py,sha256=Kdq3YRj6fOnAmDjI6vktvOvN0vAR8U7TgoTGqcA2KcI,973
|
10
10
|
mezo_agent/data/new_router.json,sha256=A8U-NVfe1F-hDyR90_SuH8jDAxmzyyHWdJW62j9TZsc,26756
|
11
|
-
mezoAgent-0.5.
|
12
|
-
mezoAgent-0.5.
|
13
|
-
mezoAgent-0.5.
|
14
|
-
mezoAgent-0.5.
|
11
|
+
mezoAgent-0.5.3.dist-info/METADATA,sha256=Q-byzl5tfJ0z1XgSz19UBLNtUPcmL-8feCiD2FZDG3s,273
|
12
|
+
mezoAgent-0.5.3.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
13
|
+
mezoAgent-0.5.3.dist-info/top_level.txt,sha256=rrAci_NyTR9z6w_BrQhQrAhzMW_A0NYhVa0x2USl0nQ,11
|
14
|
+
mezoAgent-0.5.3.dist-info/RECORD,,
|
mezo_agent/config.py
CHANGED
@@ -37,13 +37,17 @@ sender_address = account.address
|
|
37
37
|
# mUSD Contract Setup using approve/allowance ABI
|
38
38
|
MUSD_ADDRESS = "0x637e22A1EBbca50EA2d34027c238317fD10003eB"
|
39
39
|
ERC20_ABI = json.loads(
|
40
|
-
'[{"constant":
|
40
|
+
'[{"constant": true, "inputs": [{"name": "owner", "type": "address"}], '
|
41
|
+
'"name": "balanceOf", "outputs": [{"name": "balance", "type": "uint256"}], '
|
42
|
+
'"stateMutability": "view", "type": "function"},'
|
43
|
+
'{"constant": false, "inputs": [{"name": "recipient", "type": "address"}, {"name": "amount", "type": "uint256"}],'
|
41
44
|
'"name": "transfer", "outputs": [{"name": "", "type": "bool"}], "stateMutability": "nonpayable", "type": "function"},'
|
42
45
|
'{"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "amount", "type": "uint256"}],'
|
43
46
|
'"name": "approve", "outputs": [{"name": "", "type": "bool"}], "stateMutability": "nonpayable", "type": "function"},'
|
44
47
|
'{"constant": true, "inputs": [{"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}],'
|
45
48
|
'"name": "allowance", "outputs": [{"name": "remaining", "type": "uint256"}], "stateMutability": "view", "type": "function"}]'
|
46
49
|
)
|
50
|
+
|
47
51
|
musd_contract = web3_instance.eth.contract(address=MUSD_ADDRESS, abi=ERC20_ABI)
|
48
52
|
|
49
53
|
#Query graph for token info
|
mezo_agent/parsing.py
CHANGED
@@ -85,15 +85,10 @@ Your output must be a valid JSON object with no additional text.
|
|
85
85
|
)
|
86
86
|
|
87
87
|
def extract_balance_details(prompt: str):
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
:param prompt: User input asking for a token balance.
|
92
|
-
:return: Dictionary containing the token symbol or an error message.
|
93
|
-
"""
|
88
|
+
formatted_prompt = balance_prompt_template.format(input=prompt)
|
89
|
+
response = llm.invoke(formatted_prompt)
|
90
|
+
print("LLM raw balance response:", response.content)
|
94
91
|
try:
|
95
|
-
|
96
|
-
response = balance_output_parser.parse(formatted_prompt)
|
97
|
-
return response
|
92
|
+
return balance_output_parser.parse(response.content)
|
98
93
|
except Exception as e:
|
99
|
-
return f"
|
94
|
+
return f"Failed to extract balance details: {str(e)}"
|
File without changes
|
File without changes
|