ai-parrot 0.2.6__cp311-cp311-manylinux_2_28_x86_64.whl → 0.2.7__cp311-cp311-manylinux_2_28_x86_64.whl

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.

Potentially problematic release.


This version of ai-parrot might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ai-parrot
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: Live Chatbots based on Langchain chatbots and Agents Integrated into Navigator Framework or used into aiohttp applications.
5
5
  Home-page: https://github.com/phenobarbital/ai-parrot
6
6
  Author: Jesus Lara
@@ -1,10 +1,10 @@
1
1
  parrot/__init__.py,sha256=eTkAkHeJ5BBDG2fxrXA4M37ODBJoS1DQYpeBAWL2xeI,387
2
2
  parrot/conf.py,sha256=-9bVGC7Rf-6wpIg6-ojvU4S_G1wBLUCVDt46KEGHEhM,4257
3
3
  parrot/exceptions.cpython-311-x86_64-linux-gnu.so,sha256=gDwsnUlOlwphVU97XaqG5e7BJs_PWPKdwgwDsjyVZIg,361200
4
- parrot/manager.py,sha256=cgiF0JS-canOaBVIYIt-zSJRtOQLZqe2eMPQjGonlGc,5939
4
+ parrot/manager.py,sha256=NhzXoWxSgtoWHpmYP8cV2Ujq_SlvCbQYQBaohAeL2TM,5935
5
5
  parrot/models.py,sha256=RsVQCqhSXBKRPcu-BCga9Y1wyvENFXDCuq3_ObIKvAo,13452
6
6
  parrot/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- parrot/version.py,sha256=-9AyAV0Vls7nJmBAukBA__wxWp776DSD1ap_87547xE,373
7
+ parrot/version.py,sha256=xEjtbWMHN7Dh_-7dUkLHuz1Ggdxq2bKaW7CrrH6bwY4,373
8
8
  parrot/chatbots/__init__.py,sha256=ypskCnME0xUv6psBEGCEyXCrD0J0ULHSllpVmSxqb4A,200
9
9
  parrot/chatbots/abstract.py,sha256=CmDn3k4r9uKImOZRN4L9zxLbCdC-1MPUAorDlfZT-kA,26421
10
10
  parrot/chatbots/asktroc.py,sha256=gyWzyvpAnmXwXd-3DEKoIJtAxt6NnP5mUZdZbkFky8s,604
@@ -12,7 +12,7 @@ parrot/chatbots/base.py,sha256=cRw7k5FRKOfLdXQJeQvACVE5ZgE1NUWf3IY7OsSsxuo,12912
12
12
  parrot/chatbots/basic.py,sha256=DIMTPoGc90BRSlokeOdnjlEXAAfZlIFqxXWaMyAX9uk,232
13
13
  parrot/chatbots/bose.py,sha256=z8rm8G_tAwHjDUodXfrAKnhaMzufQyf-GrhxwHeHle4,757
14
14
  parrot/chatbots/cody.py,sha256=Z0LNiNtZjEe7bA3hwexclBZK5zEF9m2ODVmrzZjC3Bw,623
15
- parrot/chatbots/copilot.py,sha256=iwwH3qMqmnNwoVvWKyyrfTi46gAIjlkAPI4yqUGGOEA,1756
15
+ parrot/chatbots/copilot.py,sha256=WDDNhjyH-xvOOA831E9qmPpGXGCpFbzO3vKj9zbfudg,2038
16
16
  parrot/chatbots/dataframe.py,sha256=CfZiLKIwnaku52nl2PNjciqRlH8m2lM4buO6xI7P408,3914
17
17
  parrot/chatbots/hragents.py,sha256=PyNIBJ2OH5CtfVydccgpY50V6GI3cLKuVdOMaa7sQz0,574
18
18
  parrot/chatbots/oddie.py,sha256=RMbANmJZP1_vLVGKRNBKmA8otyAiWPkvpA0rJ0U3tZk,796
@@ -103,8 +103,8 @@ resources/users/handlers.py,sha256=BGzqBvPY_OaIF_nONWX4b_B5OyyBrdGuSihIsdlFwjk,2
103
103
  resources/users/models.py,sha256=glk7Emv7QCi6i32xRFDrGc8UwK23_LPg0XUOJoHnwRU,6799
104
104
  settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
105
105
  settings/settings.py,sha256=9ueEvyLNurUX-AaIeRPV8GKX1c4YjDLbksUAeqEq6Ck,1854
106
- ai_parrot-0.2.6.dist-info/LICENSE,sha256=vRKOoa7onTsLNvSzJtGtMaNhWWh8B3YAT733Tlu6M4o,1070
107
- ai_parrot-0.2.6.dist-info/METADATA,sha256=7Kji1fBpiTAyv3ZtEf2Ykm66fWDWucpx2hzliTml3ts,10421
108
- ai_parrot-0.2.6.dist-info/WHEEL,sha256=tFO7F0mawMNWa_NzTDA1ygqZBeMykVNIr04O5Zxk1TE,113
109
- ai_parrot-0.2.6.dist-info/top_level.txt,sha256=qHoO4BhYDfeTkyKnciZSQtn5FSLN3Q-P5xCTkyvbuxg,26
110
- ai_parrot-0.2.6.dist-info/RECORD,,
106
+ ai_parrot-0.2.7.dist-info/LICENSE,sha256=vRKOoa7onTsLNvSzJtGtMaNhWWh8B3YAT733Tlu6M4o,1070
107
+ ai_parrot-0.2.7.dist-info/METADATA,sha256=3dyKDgSYCgNEXrjvET--EP7GMS261HKNyPOsAYCEl20,10421
108
+ ai_parrot-0.2.7.dist-info/WHEEL,sha256=tFO7F0mawMNWa_NzTDA1ygqZBeMykVNIr04O5Zxk1TE,113
109
+ ai_parrot-0.2.7.dist-info/top_level.txt,sha256=qHoO4BhYDfeTkyKnciZSQtn5FSLN3Q-P5xCTkyvbuxg,26
110
+ ai_parrot-0.2.7.dist-info/RECORD,,
@@ -45,29 +45,38 @@ class CopilotAgent(BaseAgent):
45
45
  @classmethod
46
46
  def default_tools(cls) -> list:
47
47
  # ZipCode API Toolkit
48
- zpt = ZipcodeAPIToolkit()
49
- zpt_tools = zpt.get_tools()
48
+ tools = []
49
+ zpt_tools = []
50
+ try:
51
+ zpt = ZipcodeAPIToolkit()
52
+ zpt_tools = zpt.get_tools()
50
53
 
51
- wk1 = WikipediaTool()
52
- wk12 = WikidataTool()
54
+ except Exception as e:
55
+ print('ERROR LOADING ZIPCODE TOOLS')
53
56
 
54
- g1 = GoogleSearchTool()
55
- g2 = GoogleLocationFinder()
57
+ wk1 = WikipediaTool()
58
+ wk12 = WikidataTool()
56
59
 
57
- b = BingSearchTool()
58
- d = DuckDuckGoSearchTool()
59
- ask = AskNewsTool()
60
+ g1 = GoogleSearchTool()
61
+ g2 = GoogleLocationFinder()
60
62
 
61
- yt = YouTubeSearchTool()
62
- stackexchange = StackExchangeTool()
63
- weather = OpenWeatherMapTool()
63
+ b = BingSearchTool()
64
+ d = DuckDuckGoSearchTool()
65
+ ask = AskNewsTool()
64
66
 
65
- tools = [
66
- wk1,
67
- wk12, g1, g2,
68
- b, d, ask, yt,
69
- weather,
70
- stackexchange
71
- ] + zpt_tools
67
+ yt = YouTubeSearchTool()
68
+ stackexchange = StackExchangeTool()
69
+ weather = OpenWeatherMapTool()
70
+
71
+ tools = [
72
+ wk1,
73
+ wk12, g1, g2,
74
+ b, d, ask, yt,
75
+ weather,
76
+ stackexchange
77
+ ] + zpt_tools
78
+
79
+ except Exception as e:
80
+ print('TOOL Error > ', e)
72
81
 
73
82
  return tools
parrot/manager.py CHANGED
@@ -87,7 +87,7 @@ class ChatbotManager:
87
87
  except Exception as e:
88
88
  print('AQUI >>> ', e)
89
89
  self.logger.error(
90
- f"Failed to configure Agent '{chatbot.name}': {e}"
90
+ f"Failed to configure Agent '{bot.name}': {e}"
91
91
  )
92
92
  self.add_chatbot(chatbot)
93
93
  self.logger.info(
parrot/version.py CHANGED
@@ -3,7 +3,7 @@
3
3
  __title__ = "ai-parrot"
4
4
  __description__ = "Live Chatbots based on Langchain chatbots and Agents \
5
5
  Integrated into Navigator Framework or used into aiohttp applications."
6
- __version__ = "0.2.6"
6
+ __version__ = "0.2.7"
7
7
  __author__ = "Jesus Lara"
8
8
  __author_email__ = "jesuslarag@gmail.com"
9
9
  __license__ = "MIT"