mezoAgent 0.4.0__tar.gz → 0.4.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mezoAgent
3
- Version: 0.4.0
3
+ Version: 0.4.2
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.4.0
3
+ Version: 0.4.2
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
@@ -0,0 +1,12 @@
1
+ from .transaction import mezo_agent_transaction_btc, mezo_agent_musd_transaction
2
+ from .swap_musd_btc import mezo_agent_swap_musd_btc
3
+ from .chat import mezo_character_chat # Corrected function name
4
+ from .characters import get_character_prompt
5
+
6
+ __all__ = [
7
+ "mezo_agent_transaction_btc",
8
+ "mezo_agent_musd_transaction",
9
+ "mezo_agent_swap_musd_btc",
10
+ "mezo_character_chat", # Corrected function name
11
+ "get_character_prompt"
12
+ ]
@@ -1,12 +1,13 @@
1
- from mezo_agent.config import Config # Use existing config file
2
1
  from mezo_agent.characters import get_character_prompt # Import character selection
3
2
  from langchain_openai import ChatOpenAI
4
- from langchain.tools import Tool
3
+ from langchain.tools import tool
4
+ from .config import OPENAI_API_KEY
5
5
 
6
6
  # Initialize OpenAI Chat Model
7
- llm = ChatOpenAI(temperature=0, openai_api_key=Config.OPENAI_API_KEY)
7
+ llm = ChatOpenAI(temperature=0, openai_api_key=OPENAI_API_KEY)
8
8
 
9
- def mezo_chat(prompt: str, character: str = "crypto_native") -> str:
9
+ @tool
10
+ def mezo_character_chat(prompt: str, character: str = "DigAIJoe") -> str:
10
11
  """
11
12
  Generates a chatbot response based on the user's input and the selected AI character.
12
13
 
@@ -19,9 +20,3 @@ def mezo_chat(prompt: str, character: str = "crypto_native") -> str:
19
20
  response = llm.invoke(query)
20
21
  return response.content.strip()
21
22
 
22
- # Define the chat tool for LangChain
23
- mezo_agent_chat_tool = Tool(
24
- name="Mezo Chat Tool",
25
- func=mezo_chat,
26
- description="Chat with an AI character that responds based on a selected personality."
27
- )
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="mezoAgent",
5
- version="0.4.0",
5
+ version="0.4.2",
6
6
  packages=find_packages(),
7
7
  include_package_data=True,
8
8
  package_data={
@@ -1,6 +0,0 @@
1
- from .transaction import mezo_agent_transaction_btc, mezo_agent_musd_transaction
2
- from .swap_musd_btc import mezo_agent_swap_musd_btc
3
- from .chat import mezo_chat, mezo_agent_chat_tool
4
- from .characters import get_character_prompt
5
-
6
- __all__ = ["mezo_chat", "mezo_agent_chat_tool", "get_character_prompt"]
File without changes
File without changes
File without changes