mezoAgent 0.5.1__tar.gz → 0.5.2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {mezoagent-0.5.1 → mezoagent-0.5.2}/PKG-INFO +1 -1
- {mezoagent-0.5.1 → mezoagent-0.5.2}/mezoAgent.egg-info/PKG-INFO +1 -1
- {mezoagent-0.5.1 → mezoagent-0.5.2}/mezo_agent/parsing.py +5 -10
- {mezoagent-0.5.1 → mezoagent-0.5.2}/setup.py +1 -1
- {mezoagent-0.5.1 → mezoagent-0.5.2}/MANIFEST.in +0 -0
- {mezoagent-0.5.1 → mezoagent-0.5.2}/README.md +0 -0
- {mezoagent-0.5.1 → mezoagent-0.5.2}/mezoAgent.egg-info/SOURCES.txt +0 -0
- {mezoagent-0.5.1 → mezoagent-0.5.2}/mezoAgent.egg-info/dependency_links.txt +0 -0
- {mezoagent-0.5.1 → mezoagent-0.5.2}/mezoAgent.egg-info/requires.txt +0 -0
- {mezoagent-0.5.1 → mezoagent-0.5.2}/mezoAgent.egg-info/top_level.txt +0 -0
- {mezoagent-0.5.1 → mezoagent-0.5.2}/mezo_agent/__init__.py +0 -0
- {mezoagent-0.5.1 → mezoagent-0.5.2}/mezo_agent/characters.py +0 -0
- {mezoagent-0.5.1 → mezoagent-0.5.2}/mezo_agent/chat.py +0 -0
- {mezoagent-0.5.1 → mezoagent-0.5.2}/mezo_agent/config.py +0 -0
- {mezoagent-0.5.1 → mezoagent-0.5.2}/mezo_agent/data/new_router.json +0 -0
- {mezoagent-0.5.1 → mezoagent-0.5.2}/mezo_agent/swap_musd_btc.py +0 -0
- {mezoagent-0.5.1 → mezoagent-0.5.2}/mezo_agent/token_balance_tool.py +0 -0
- {mezoagent-0.5.1 → mezoagent-0.5.2}/mezo_agent/transaction.py +0 -0
- {mezoagent-0.5.1 → mezoagent-0.5.2}/mezo_agent/utils.py +0 -0
- {mezoagent-0.5.1 → mezoagent-0.5.2}/setup.cfg +0 -0
@@ -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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|