mezoAgent 0.6.1__tar.gz → 0.6.3__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mezoAgent
3
- Version: 0.6.1
3
+ Version: 0.6.3
4
4
  Summary: A Python package for Mezo Agent transactions with LangChain tools
5
5
  Author: Dreadwulf, Duck, Digi
6
6
  Requires-Dist: python-dotenv
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mezoAgent
3
- Version: 0.6.1
3
+ Version: 0.6.3
4
4
  Summary: A Python package for Mezo Agent transactions with LangChain tools
5
5
  Author: Dreadwulf, Duck, Digi
6
6
  Requires-Dist: python-dotenv
@@ -3,6 +3,7 @@ from .swap_musd_btc import mezo_agent_swap_musd_btc
3
3
  from .chat import mezo_character_chat
4
4
  from .characters import get_character_prompt
5
5
  from .token_balance_tool import mezo_agent_token_balance_tool
6
+ from .token_price_tool import mezo_agent_token_price_tool
6
7
 
7
8
  __all__ = [
8
9
  "mezo_agent_transaction_btc",
@@ -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")
@@ -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
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="mezoAgent",
5
- version="0.6.1",
5
+ version="0.6.3",
6
6
  packages=find_packages(),
7
7
  include_package_data=True,
8
8
  package_data={
File without changes
File without changes
File without changes
File without changes
File without changes