mezoAgent 0.5.1__py3-none-any.whl → 0.5.2__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.2.dist-info}/METADATA +1 -1
- {mezoAgent-0.5.1.dist-info → mezoAgent-0.5.2.dist-info}/RECORD +5 -5
- mezo_agent/parsing.py +5 -10
- {mezoAgent-0.5.1.dist-info → mezoAgent-0.5.2.dist-info}/WHEEL +0 -0
- {mezoAgent-0.5.1.dist-info → mezoAgent-0.5.2.dist-info}/top_level.txt +0 -0
@@ -2,13 +2,13 @@ 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
4
|
mezo_agent/config.py,sha256=LgMTntnzXrY7giGXy6JZqhPwPxxMpWWOgc2Ah6g3Y48,3017
|
5
|
-
mezo_agent/parsing.py,sha256=
|
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.2.dist-info/METADATA,sha256=LLnjBY0JDYmk47bpPph-4hGrEE78T7ZW3hR8fP3S9ZU,273
|
12
|
+
mezoAgent-0.5.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
13
|
+
mezoAgent-0.5.2.dist-info/top_level.txt,sha256=rrAci_NyTR9z6w_BrQhQrAhzMW_A0NYhVa0x2USl0nQ,11
|
14
|
+
mezoAgent-0.5.2.dist-info/RECORD,,
|
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
|