PraisonAI 0.0.28__py3-none-any.whl → 0.0.31__py3-none-any.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 PraisonAI might be problematic. Click here for more details.
- praisonai/chainlit_ui.py +6 -0
- praisonai/cli.py +2 -0
- praisonai/deploy.py +1 -1
- praisonai/inbuilt_tools/autogen_tools.py +5 -1
- {praisonai-0.0.28.dist-info → praisonai-0.0.31.dist-info}/METADATA +3 -3
- praisonai-0.0.31.dist-info/RECORD +16 -0
- praisonai-0.0.28.dist-info/RECORD +0 -16
- {praisonai-0.0.28.dist-info → praisonai-0.0.31.dist-info}/LICENSE +0 -0
- {praisonai-0.0.28.dist-info → praisonai-0.0.31.dist-info}/WHEEL +0 -0
- {praisonai-0.0.28.dist-info → praisonai-0.0.31.dist-info}/entry_points.txt +0 -0
praisonai/chainlit_ui.py
CHANGED
|
@@ -75,6 +75,12 @@ async def start_chat():
|
|
|
75
75
|
"message_history",
|
|
76
76
|
[{"role": "system", "content": "You are a helpful assistant."}],
|
|
77
77
|
)
|
|
78
|
+
|
|
79
|
+
# Create tools.py if it doesn't exist
|
|
80
|
+
if not os.path.exists("tools.py"):
|
|
81
|
+
with open("tools.py", "w") as f:
|
|
82
|
+
f.write("# Add your custom tools here\n")
|
|
83
|
+
|
|
78
84
|
settings = await cl.ChatSettings(
|
|
79
85
|
[
|
|
80
86
|
TextInput(id="Model", label="OpenAI - Model", initial=config_list[0]['model']),
|
praisonai/cli.py
CHANGED
praisonai/deploy.py
CHANGED
|
@@ -56,7 +56,7 @@ class CloudDeployer:
|
|
|
56
56
|
file.write("FROM python:3.11-slim\n")
|
|
57
57
|
file.write("WORKDIR /app\n")
|
|
58
58
|
file.write("COPY . .\n")
|
|
59
|
-
file.write("RUN pip install flask praisonai==0.0.
|
|
59
|
+
file.write("RUN pip install flask praisonai==0.0.31 gunicorn markdown\n")
|
|
60
60
|
file.write("EXPOSE 8080\n")
|
|
61
61
|
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
|
|
62
62
|
|
|
@@ -166,7 +166,11 @@ def autogen_ScrapeWebsiteTool(assistant, user_proxy):
|
|
|
166
166
|
def register_scrape_website_tool(tool_class, tool_name, tool_description, assistant, user_proxy):
|
|
167
167
|
def tool_func(website_url: str) -> Any:
|
|
168
168
|
tool_instance = tool_class(website_url=website_url)
|
|
169
|
-
|
|
169
|
+
content = tool_instance.run()
|
|
170
|
+
# Ensure content is properly decoded as UTF-8 if it's a bytes object
|
|
171
|
+
if isinstance(content, bytes):
|
|
172
|
+
content = content.decode('utf-8')
|
|
173
|
+
return content
|
|
170
174
|
register_function(tool_func, caller=assistant, executor=user_proxy, name=tool_name, description=tool_description)
|
|
171
175
|
register_scrape_website_tool(ScrapeWebsiteTool, "scrape_website_tool", "Read website content(website_url: 'string') - A tool that can be used to read content from a specified website.", assistant, user_proxy)
|
|
172
176
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PraisonAI
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.31
|
|
4
4
|
Summary: PraisonAI application combines AutoGen and CrewAI or similar frameworks into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customization, and efficient human-agent collaboration.
|
|
5
5
|
Author: Mervin Praison
|
|
6
6
|
Requires-Python: >=3.10,<3.13
|
|
@@ -8,13 +8,13 @@ Classifier: Programming Language :: Python :: 3
|
|
|
8
8
|
Classifier: Programming Language :: Python :: 3.10
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.11
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.12
|
|
11
|
+
Provides-Extra: api
|
|
11
12
|
Provides-Extra: gradio
|
|
12
13
|
Provides-Extra: ui
|
|
13
|
-
Requires-Dist: Flask (>=3.0.0)
|
|
14
|
-
Requires-Dist: blinker (>=1.8.2)
|
|
15
14
|
Requires-Dist: chainlit (>=1.1.301,<2.0.0) ; extra == "ui"
|
|
16
15
|
Requires-Dist: crewai (>=0.30.4)
|
|
17
16
|
Requires-Dist: crewai-tools (>=0.2.6,<0.3.0)
|
|
17
|
+
Requires-Dist: flask (>=3.0.0) ; extra == "api"
|
|
18
18
|
Requires-Dist: gradio (>=4.26.0) ; extra == "gradio"
|
|
19
19
|
Requires-Dist: markdown (>=3.5)
|
|
20
20
|
Requires-Dist: praisonai-tools (>=0.0.4)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
praisonai/__init__.py,sha256=5SwxMGd4vNUmYedF_HLLQBo4u8zMEWuEfKhHqJrEE1I,59
|
|
2
|
+
praisonai/__main__.py,sha256=MVgsjMThjBexHt4nhd760JCqvP4x0IQcwo8kULOK4FQ,144
|
|
3
|
+
praisonai/agents_generator.py,sha256=blzU5uru7rctRUTlnxEER9NLyu4aAd-oUjE-0xo81ww,12787
|
|
4
|
+
praisonai/auto.py,sha256=CpE9zUbdCP1wR0aLZWKVLxiLU9JOQprRNBK9WKDZVQo,7758
|
|
5
|
+
praisonai/chainlit_ui.py,sha256=nzm_C8MpiocAlSfyA3lgERCGxzpEfvoROREBTNrDe5A,10239
|
|
6
|
+
praisonai/cli.py,sha256=-ikeUf2NUCVvme37X7HwtaDop5ck2Fx802J-Q7b4cyg,10090
|
|
7
|
+
praisonai/deploy.py,sha256=WXvq-jRw5aXw0ZOfD3w0vaZ-1Ajl5NQFtuNiBsjaItM,6031
|
|
8
|
+
praisonai/inbuilt_tools/__init__.py,sha256=mUKnbL6Gram9c9f2m8wJwEzURBLmPEOcHzwySBH89YA,74
|
|
9
|
+
praisonai/inbuilt_tools/autogen_tools.py,sha256=AY-6Vc4l2KsUlqm1Z--YqK1Ji-8q0YyaCAOxx1j5seE,14761
|
|
10
|
+
praisonai/test.py,sha256=RZKq3UEFb6AnFFiHER3zBXfNmlteSLBlrTmOvnpnZLo,4092
|
|
11
|
+
praisonai/version.py,sha256=ugyuFliEqtAwQmH4sTlc16YXKYbFWDmfyk87fErB8-8,21
|
|
12
|
+
praisonai-0.0.31.dist-info/LICENSE,sha256=kqvFysVlnFxYOu0HxCe2HlmZmJtdmNGOxWRRkT9TsWc,1035
|
|
13
|
+
praisonai-0.0.31.dist-info/METADATA,sha256=DQrY-6SgEilNJlNIPwYGDbLOCfLlc5cgVzf-zpHDbO4,9556
|
|
14
|
+
praisonai-0.0.31.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
15
|
+
praisonai-0.0.31.dist-info/entry_points.txt,sha256=Qg41eW3A1-dvdV5tF7LqChfYof8Rihk2rN1fiEE3vnk,53
|
|
16
|
+
praisonai-0.0.31.dist-info/RECORD,,
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
praisonai/__init__.py,sha256=5SwxMGd4vNUmYedF_HLLQBo4u8zMEWuEfKhHqJrEE1I,59
|
|
2
|
-
praisonai/__main__.py,sha256=MVgsjMThjBexHt4nhd760JCqvP4x0IQcwo8kULOK4FQ,144
|
|
3
|
-
praisonai/agents_generator.py,sha256=blzU5uru7rctRUTlnxEER9NLyu4aAd-oUjE-0xo81ww,12787
|
|
4
|
-
praisonai/auto.py,sha256=CpE9zUbdCP1wR0aLZWKVLxiLU9JOQprRNBK9WKDZVQo,7758
|
|
5
|
-
praisonai/chainlit_ui.py,sha256=jXNQfnH3D2xsSvJ0ESuHy-yDgBjudBKb1ODPfbqhYRc,10053
|
|
6
|
-
praisonai/cli.py,sha256=_KB_12VoYFSLywFqE0kfbkM76e3DNRK9eeWsFlnfANc,10021
|
|
7
|
-
praisonai/deploy.py,sha256=t8JLpY4Zq4GBlOogjI2cLKyjIq2_xOVsqLguQrhtE3M,6031
|
|
8
|
-
praisonai/inbuilt_tools/__init__.py,sha256=mUKnbL6Gram9c9f2m8wJwEzURBLmPEOcHzwySBH89YA,74
|
|
9
|
-
praisonai/inbuilt_tools/autogen_tools.py,sha256=m3Ws2444hzgkiEjqw9Y4PFb_LsU9ZDD23C03uNsyeu0,14556
|
|
10
|
-
praisonai/test.py,sha256=RZKq3UEFb6AnFFiHER3zBXfNmlteSLBlrTmOvnpnZLo,4092
|
|
11
|
-
praisonai/version.py,sha256=ugyuFliEqtAwQmH4sTlc16YXKYbFWDmfyk87fErB8-8,21
|
|
12
|
-
praisonai-0.0.28.dist-info/LICENSE,sha256=kqvFysVlnFxYOu0HxCe2HlmZmJtdmNGOxWRRkT9TsWc,1035
|
|
13
|
-
praisonai-0.0.28.dist-info/METADATA,sha256=zYoPjpI0HpZ6RfcHI6IzzrEaelO_z4vyNz_C-ZfqyiY,9552
|
|
14
|
-
praisonai-0.0.28.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
15
|
-
praisonai-0.0.28.dist-info/entry_points.txt,sha256=Qg41eW3A1-dvdV5tF7LqChfYof8Rihk2rN1fiEE3vnk,53
|
|
16
|
-
praisonai-0.0.28.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|