PraisonAI 0.0.59rc2__cp312-cp312-manylinux_2_35_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 PraisonAI might be problematic. Click here for more details.

Files changed (41) hide show
  1. praisonai/__init__.py +6 -0
  2. praisonai/__main__.py +10 -0
  3. praisonai/agents_generator.py +381 -0
  4. praisonai/auto.py +190 -0
  5. praisonai/chainlit_ui.py +304 -0
  6. praisonai/cli.py +337 -0
  7. praisonai/deploy.py +138 -0
  8. praisonai/inbuilt_tools/__init__.py +2 -0
  9. praisonai/inbuilt_tools/autogen_tools.py +209 -0
  10. praisonai/inc/__init__.py +2 -0
  11. praisonai/inc/models.py +128 -0
  12. praisonai/public/android-chrome-192x192.png +0 -0
  13. praisonai/public/android-chrome-512x512.png +0 -0
  14. praisonai/public/apple-touch-icon.png +0 -0
  15. praisonai/public/fantasy.svg +3 -0
  16. praisonai/public/favicon-16x16.png +0 -0
  17. praisonai/public/favicon-32x32.png +0 -0
  18. praisonai/public/favicon.ico +0 -0
  19. praisonai/public/game.svg +3 -0
  20. praisonai/public/logo_dark.png +0 -0
  21. praisonai/public/logo_light.png +0 -0
  22. praisonai/public/movie.svg +3 -0
  23. praisonai/public/thriller.svg +3 -0
  24. praisonai/test.py +105 -0
  25. praisonai/train.py +232 -0
  26. praisonai/ui/chat.py +304 -0
  27. praisonai/ui/code.py +318 -0
  28. praisonai/ui/context.py +283 -0
  29. praisonai/ui/public/fantasy.svg +3 -0
  30. praisonai/ui/public/game.svg +3 -0
  31. praisonai/ui/public/logo_dark.png +0 -0
  32. praisonai/ui/public/logo_light.png +0 -0
  33. praisonai/ui/public/movie.svg +3 -0
  34. praisonai/ui/public/thriller.svg +3 -0
  35. praisonai/ui/sql_alchemy.py +638 -0
  36. praisonai/version.py +1 -0
  37. praisonai-0.0.59rc2.dist-info/LICENSE +20 -0
  38. praisonai-0.0.59rc2.dist-info/METADATA +344 -0
  39. praisonai-0.0.59rc2.dist-info/RECORD +41 -0
  40. praisonai-0.0.59rc2.dist-info/WHEEL +4 -0
  41. praisonai-0.0.59rc2.dist-info/entry_points.txt +5 -0
@@ -0,0 +1,344 @@
1
+ Metadata-Version: 2.1
2
+ Name: PraisonAI
3
+ Version: 0.0.59rc2
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
+ Author: Mervin Praison
6
+ Requires-Python: >=3.10,<3.13
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.10
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Provides-Extra: agentops
12
+ Provides-Extra: anthropic
13
+ Provides-Extra: api
14
+ Provides-Extra: chat
15
+ Provides-Extra: code
16
+ Provides-Extra: cohere
17
+ Provides-Extra: google
18
+ Provides-Extra: gradio
19
+ Provides-Extra: openai
20
+ Provides-Extra: train
21
+ Provides-Extra: ui
22
+ Requires-Dist: agentops (>=0.2.6) ; extra == "agentops"
23
+ Requires-Dist: aiosqlite (>=0.20.0) ; extra == "chat" or extra == "code"
24
+ Requires-Dist: chainlit (>=1.1.301,<2.0.0) ; extra == "ui" or extra == "chat" or extra == "code"
25
+ Requires-Dist: crewai (>=0.32.0)
26
+ Requires-Dist: flask (>=3.0.0) ; extra == "api"
27
+ Requires-Dist: gradio (>=4.26.0) ; extra == "gradio"
28
+ Requires-Dist: greenlet (>=3.0.3) ; extra == "chat" or extra == "code"
29
+ Requires-Dist: langchain-anthropic (>=0.1.13) ; extra == "anthropic"
30
+ Requires-Dist: langchain-cohere (>=0.1.4) ; extra == "cohere"
31
+ Requires-Dist: langchain-google-genai (>=1.0.4) ; extra == "google"
32
+ Requires-Dist: langchain-openai (>=0.1.7) ; extra == "openai"
33
+ Requires-Dist: litellm (>=1.41.8) ; extra == "chat" or extra == "code"
34
+ Requires-Dist: markdown (>=3.5)
35
+ Requires-Dist: praisonai-tools (>=0.0.7)
36
+ Requires-Dist: pyautogen (>=0.2.19)
37
+ Requires-Dist: pyparsing (>=3.0.0)
38
+ Requires-Dist: rich (>=13.7)
39
+ Project-URL: Homepage, https://docs.praison.ai
40
+ Project-URL: Repository, https://github.com/mervinpraison/PraisonAI
41
+ Description-Content-Type: text/markdown
42
+
43
+ <p align="center">
44
+ <picture>
45
+ <source media="(prefers-color-scheme: dark)" srcset="docs/images/praisonai-logo-large.png">
46
+ <source media="(prefers-color-scheme: light)" srcset="docs/images/praisonai-logo-black-large.png">
47
+ <img alt="PraisonAI Logo" src="docs/images/praisonai-logo-black-large.png">
48
+ </picture>
49
+ </p>
50
+
51
+ <p align="center">
52
+ <a href="https://github.com/MervinPraison/PraisonAI"><img src="https://static.pepy.tech/badge/PraisonAI" alt="Total Downloads"></a>
53
+ <a href="https://github.com/MervinPraison/PraisonAI"><img src="https://img.shields.io/github/v/release/MervinPraison/PraisonAI" alt="Latest Stable Version"></a>
54
+ <a href="https://github.com/MervinPraison/PraisonAI"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License"></a>
55
+ </p>
56
+
57
+ <div align="center">
58
+
59
+ # Praison AI
60
+
61
+ </div>
62
+
63
+ Praison AI, leveraging both AutoGen and CrewAI or any other agent framework, represents a low-code, centralised framework designed to simplify the creation and orchestration of multi-agent systems for various LLM applications, emphasizing ease of use, customization, and human-agent interaction.
64
+
65
+ <div align="center">
66
+ <picture>
67
+ <source media="(prefers-color-scheme: dark)" srcset="docs/images/architecture-dark.png">
68
+ <source media="(prefers-color-scheme: light)" srcset="docs/images/architecture-light.png">
69
+ <img alt="PraisonAI Architecture" src="docs/images/architecture-light.png">
70
+ </picture>
71
+ </div>
72
+
73
+ ## Different User Interfaces:
74
+
75
+ | Interface | Description | URL |
76
+ |---|---|---|
77
+ | **UI** | Multi Agents such as CrewAI or AutoGen | [https://docs.praison.ai/ui/ui](https://docs.praison.ai/ui/ui) |
78
+ | **Chat** | Chat with 100+ LLMs, single AI Agent | [https://docs.praison.ai/ui/chat](https://docs.praison.ai/ui/chat) |
79
+ | **Code** | Chat with entire Codebase, single AI Agent | [https://docs.praison.ai/ui/code](https://docs.praison.ai/ui/code) |
80
+
81
+ ## Google Colab Multi Agents
82
+
83
+ | | Cookbook | Open in Colab |
84
+ | ------------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
85
+ | Basic | PraisonAI | <a target="_blank" href="https://colab.research.google.com/github/MervinPraison/PraisonAI/blob/main/cookbooks/praisonai-googlecolab.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> |
86
+ | Include Tools | PraisonAI Tools | <a target="_blank" href="https://colab.research.google.com/github/MervinPraison/PraisonAI/blob/main/cookbooks/praisonai-tools-googlecolab.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> |
87
+
88
+ ## Install
89
+
90
+ | PraisonAI | PraisonAI Code | PraisonAI Chat |
91
+ | --- | --- | --- |
92
+ | `pip install praisonai` | `pip install "praisonai[code]"` | `pip install "praisonai[chat]"` |
93
+
94
+ ## Key Features
95
+
96
+ - Automated AI Agents Creation
97
+ - Use CrewAI or AutoGen Framework
98
+ - 100+ LLM Support
99
+ - Chat with ENTIRE Codebase
100
+ - Interactive UIs
101
+ - YAML-based Configuration
102
+ - Custom Tool Integration
103
+
104
+ ## TL;DR Multi Agents
105
+
106
+ ```bash
107
+ pip install praisonai
108
+ export OPENAI_API_KEY="Enter your API key"
109
+ praisonai --init create a movie script about dog in moon
110
+ praisonai
111
+ ```
112
+
113
+ ## Table of Contents
114
+
115
+ - [Installation](#installation)
116
+ - [Initialise](#initialise)
117
+ - [Run](#run)
118
+ - [Full Automatic Mode](#full-automatic-mode)
119
+ - [User Interface](#user-interface)
120
+ - [Praison AI Chat](#praison-ai-chat)
121
+ - [Create Custom Tools](#create-custom-tools)
122
+ - [Agents Playbook](#agents-playbook)
123
+ - [Include praisonai package in your project](#include-praisonai-package-in-your-project)
124
+ - [Commands to Install Dev Dependencies](#commands-to-install-dependencies)
125
+ - [Other Models](#other-models)
126
+ - [Contributing](#contributing)
127
+ - [Star History](#star-history)
128
+
129
+ ## Installation Multi Agents
130
+
131
+ ```bash
132
+ pip install praisonai
133
+ ```
134
+
135
+ ## Initialise
136
+
137
+ ```bash
138
+ export OPENAI_API_KEY="Enter your API key"
139
+ ```
140
+
141
+ Generate your OPENAI API KEY from here: https://platform.openai.com/api-keys
142
+
143
+ Note: You can use other providers such as Ollama, Mistral ... etc. Details are provided at the bottom.
144
+
145
+ ```bash
146
+ praisonai --init create a movie script about dog in moon
147
+ ```
148
+
149
+ This will automatically create agents.yaml file in the current directory.
150
+
151
+ ### To initialise with a specific agent framework (Optional):
152
+
153
+ ```bash
154
+ praisonai --framework autogen --init create movie script about cat in mars
155
+ ```
156
+
157
+ ## Run
158
+
159
+ ```bash
160
+ praisonai
161
+ ```
162
+
163
+ or
164
+
165
+ ```bash
166
+ python -m praisonai
167
+ ```
168
+
169
+ ### Specify the agent framework (Optional):
170
+
171
+ ```bash
172
+ praisonai --framework autogen
173
+ ```
174
+
175
+ ### Full Automatic Mode
176
+
177
+ ```bash
178
+ praisonai --auto create a movie script about Dog in Moon
179
+ ```
180
+
181
+ ## User Interface
182
+
183
+ ## PraisonAI User Interfaces:
184
+
185
+ | Interface | Description | URL |
186
+ | --------- | ------------------------------------------ | --------------------------------------------------------------------- |
187
+ | **UI** | Multi Agents such as CrewAI or AutoGen | [https://docs.praisonai.com/ui/ui](https://docs.praison.ai/ui/ui) |
188
+ | **Chat** | Chat with 100+ LLMs, single AI Agent | [https://docs.praisonai.com/ui/chat](https://docs.praison.ai/ui/chat) |
189
+ | **Code** | Chat with entire Codebase, single AI Agent | [https://docs.praisonai.com/ui/code](https://docs.praison.ai/ui/code) |
190
+
191
+ ```bash
192
+ pip install -U "praisonai[ui]"
193
+ export OPENAI_API_KEY="Enter your API key"
194
+ chainlit create-secret
195
+ export CHAINLIT_AUTH_SECRET=xxxxxxxx
196
+ praisonai ui
197
+ ```
198
+
199
+ or
200
+
201
+ ```
202
+ python -m praisonai ui
203
+ ```
204
+
205
+ ## Praison AI Chat
206
+
207
+ - https://docs.praison.ai/chat/
208
+
209
+ ```bash
210
+ pip install "praisonai[chat]"
211
+ export OPENAI_API_KEY="Enter your API key"
212
+ praisonai chat
213
+ ```
214
+
215
+ ## Praison AI Code
216
+
217
+ ```bash
218
+ pip install "praisonai[code]"
219
+ export OPENAI_API_KEY="Enter your API key"
220
+ praisonai code
221
+ ```
222
+
223
+ ## Create Custom Tools
224
+
225
+ - https://docs.praison.ai/tools/custom/
226
+
227
+ ## Agents Playbook
228
+
229
+ ### Simple Playbook Example
230
+
231
+ ```yaml
232
+ framework: crewai
233
+ topic: Artificial Intelligence
234
+ roles:
235
+ screenwriter:
236
+ backstory: "Skilled in crafting scripts with engaging dialogue about {topic}."
237
+ goal: Create scripts from concepts.
238
+ role: Screenwriter
239
+ tasks:
240
+ scriptwriting_task:
241
+ description: "Develop scripts with compelling characters and dialogue about {topic}."
242
+ expected_output: "Complete script ready for production."
243
+ ```
244
+
245
+ ## Use 100+ Models
246
+
247
+ - https://docs.praison.ai/models/
248
+
249
+ ## Include praisonai package in your project
250
+
251
+ - https://docs.praison.ai/developers/wrapper
252
+ - https://docs.praison.ai/developers/wrapper-tools/
253
+
254
+ ## Option 1: Using RAW YAML
255
+
256
+ ```python
257
+ from praisonai import PraisonAI
258
+
259
+ # Example agent_yaml content
260
+ agent_yaml = """
261
+ framework: "crewai"
262
+ topic: "Space Exploration"
263
+
264
+ roles:
265
+ astronomer:
266
+ role: "Space Researcher"
267
+ goal: "Discover new insights about {topic}"
268
+ backstory: "You are a curious and dedicated astronomer with a passion for unraveling the mysteries of the cosmos."
269
+ tasks:
270
+ investigate_exoplanets:
271
+ description: "Research and compile information about exoplanets discovered in the last decade."
272
+ expected_output: "A summarized report on exoplanet discoveries, including their size, potential habitability, and distance from Earth."
273
+ """
274
+
275
+ # Create a PraisonAI instance with the agent_yaml content
276
+ praisonai = PraisonAI(agent_yaml=agent_yaml)
277
+
278
+ # Run PraisonAI
279
+ result = praisonai.run()
280
+
281
+ # Print the result
282
+ print(result)
283
+ ```
284
+
285
+ ## Option 2: Using separate agents.yaml file
286
+
287
+ Note: Please create agents.yaml file before hand.
288
+
289
+ ```python
290
+ from praisonai import PraisonAI
291
+
292
+ def basic(): # Basic Mode
293
+ praisonai = PraisonAI(agent_file="agents.yaml")
294
+ praisonai.run()
295
+
296
+ if __name__ == "__main__":
297
+ basic()
298
+ ```
299
+
300
+ ## Commands to Install Dependencies:
301
+
302
+ 1. **Install all dependencies, including dev dependencies:**
303
+
304
+ ```sh
305
+ poetry install
306
+ ```
307
+
308
+ 2. **Install only documentation dependencies:**
309
+
310
+ ```sh
311
+ poetry install --with docs
312
+ ```
313
+
314
+ 3. **Install only test dependencies:**
315
+
316
+ ```sh
317
+ poetry install --with test
318
+ ```
319
+
320
+ 4. **Install only dev dependencies:**
321
+ ```sh
322
+ poetry install --with dev
323
+ ```
324
+
325
+ This configuration ensures that your development dependencies are correctly categorized and installed as needed.
326
+
327
+ ## Contributing
328
+
329
+ - Fork on GitHub: Use the "Fork" button on the repository page.
330
+ - Clone your fork: `git clone https://github.com/yourusername/praisonAI.git`
331
+ - Create a branch: `git checkout -b new-feature`
332
+ - Make changes and commit: `git commit -am "Add some feature"`
333
+ - Push to your fork: `git push origin new-feature`
334
+ - Submit a pull request via GitHub's web interface.
335
+ - Await feedback from project maintainers.
336
+
337
+ ## Star History
338
+
339
+ [![Star History Chart](https://api.star-history.com/svg?repos=MervinPraison/PraisonAI&type=Date)](https://docs.praison.ai)
340
+
341
+ ## License
342
+
343
+ Praison AI is an open-sourced software licensed under the **[MIT license](https://opensource.org/licenses/MIT)**.
344
+
@@ -0,0 +1,41 @@
1
+ praisonai/__init__.py,sha256=JrgyPlzZfLlozoW7SHZ1nVJ63rLPR3ki2k5ZPywYrnI,175
2
+ praisonai/__main__.py,sha256=MVgsjMThjBexHt4nhd760JCqvP4x0IQcwo8kULOK4FQ,144
3
+ praisonai/agents_generator.py,sha256=8d1WRbubvEkBrW1HZ7_xnGyqgJi0yxmXa3MgTIqef1c,19127
4
+ praisonai/auto.py,sha256=9spTXqj47Hmmqv5QHRYE_RzSVHH_KoPbaZjskUj2UcE,7895
5
+ praisonai/chainlit_ui.py,sha256=bNR7s509lp0I9JlJNvwCZRUZosC64qdvlFCt8NmFamQ,12216
6
+ praisonai/cli.py,sha256=64ubHQr9j8O0pXnjbXWEpvnHbviDO-R4YYFWOLE_RSU,14772
7
+ praisonai/deploy.py,sha256=J83zRX4P4TOxL_0kLrD9DAHI8E4e9nNqrICDIM0N6Wc,6031
8
+ praisonai/inbuilt_tools/__init__.py,sha256=mUKnbL6Gram9c9f2m8wJwEzURBLmPEOcHzwySBH89YA,74
9
+ praisonai/inbuilt_tools/autogen_tools.py,sha256=svYkM2N7DVFvbiwgoAS7U_MqTOD8rHf8VD3BaFUV5_Y,14907
10
+ praisonai/inc/__init__.py,sha256=sPDlYBBwdk0VlWzaaM_lG0_LD07lS2HRGvPdxXJFiYg,62
11
+ praisonai/inc/models.py,sha256=1kwP9o56AvN8L38x7eeAzudjAvstN0uWu-woQkgxAe4,5449
12
+ praisonai/public/android-chrome-192x192.png,sha256=ENJEqhDE3XEQViRhKNDezQKRiOiuHOUj5nzRN43fz50,6535
13
+ praisonai/public/android-chrome-512x512.png,sha256=4txEwB0cJkxFVarRdvFGJZR1DtWJ2h-L_2cUEjBXHAc,15244
14
+ praisonai/public/apple-touch-icon.png,sha256=YLlEhlenm24QY_yv-5wb_mxDxJ8H22H_S8Khlvz-zVA,6001
15
+ praisonai/public/fantasy.svg,sha256=4Gs3kIOux-pjGtw6ogI_rv5_viVJxnE5gRwGilsSg0o,1553
16
+ praisonai/public/favicon-16x16.png,sha256=jFiLfRSaEw_kwSxVQQUNV7Auc6oDRvZVKEIiUqC7vYE,429
17
+ praisonai/public/favicon-32x32.png,sha256=cgKvhHroXWNl1Err0TFr8tGepjNzIBpaTinFUT5pbZk,872
18
+ praisonai/public/favicon.ico,sha256=SOcyfycBi_8rd9ff3gmSuZ3M-rkxv1RpHi76cwvmsQ0,15406
19
+ praisonai/public/game.svg,sha256=y2QMaA01m8XzuDjTOBWzupOC3-TpnUl9ah89mIhviUw,2406
20
+ praisonai/public/logo_dark.png,sha256=frHz1zkrnivGssJgk9iy1cabojkVgm8B4MllFwL_CnI,17050
21
+ praisonai/public/logo_light.png,sha256=8cQRti_Ysa30O3_7C3ku2w40LnVUUlUok47H-3ZZHSU,19656
22
+ praisonai/public/movie.svg,sha256=aJ2EQ8vXZusVsF2SeuAVxP4RFJzQ14T26ejrGYdBgzk,1289
23
+ praisonai/public/thriller.svg,sha256=2dYY72EcgbEyTxS4QzjAm37Y4srtPWEW4vCMFki98ZI,3163
24
+ praisonai/test.py,sha256=OL-wesjA5JTohr8rtr6kWoaS4ImkJg2l0GXJ-dUUfRU,4090
25
+ praisonai/train.py,sha256=Kuckd3TjW6ZYTISyXpL0upB-NibsEmwk1BMhRHPXba0,9200
26
+ praisonai/ui/chat.py,sha256=B4F1R7qP-0c-elg8WcRsYlr6-FkmHWtdunGIzU7WrDM,9321
27
+ praisonai/ui/code.py,sha256=GcOr8lNah4AgI2RcIKmgjehzSl-KNu7x6UHrghixeaM,10095
28
+ praisonai/ui/context.py,sha256=oWO2I_WBZb7kZnuXItf18EJX0ZQv-1nAd8rxhwhuuDU,11871
29
+ praisonai/ui/public/fantasy.svg,sha256=4Gs3kIOux-pjGtw6ogI_rv5_viVJxnE5gRwGilsSg0o,1553
30
+ praisonai/ui/public/game.svg,sha256=y2QMaA01m8XzuDjTOBWzupOC3-TpnUl9ah89mIhviUw,2406
31
+ praisonai/ui/public/logo_dark.png,sha256=frHz1zkrnivGssJgk9iy1cabojkVgm8B4MllFwL_CnI,17050
32
+ praisonai/ui/public/logo_light.png,sha256=8cQRti_Ysa30O3_7C3ku2w40LnVUUlUok47H-3ZZHSU,19656
33
+ praisonai/ui/public/movie.svg,sha256=aJ2EQ8vXZusVsF2SeuAVxP4RFJzQ14T26ejrGYdBgzk,1289
34
+ praisonai/ui/public/thriller.svg,sha256=2dYY72EcgbEyTxS4QzjAm37Y4srtPWEW4vCMFki98ZI,3163
35
+ praisonai/ui/sql_alchemy.py,sha256=HsyeRq-G9qbQobHWpTJHHKQiT4FvYw_7iuv-2PNh0IU,27419
36
+ praisonai/version.py,sha256=ugyuFliEqtAwQmH4sTlc16YXKYbFWDmfyk87fErB8-8,21
37
+ praisonai-0.0.59rc2.dist-info/LICENSE,sha256=kqvFysVlnFxYOu0HxCe2HlmZmJtdmNGOxWRRkT9TsWc,1035
38
+ praisonai-0.0.59rc2.dist-info/METADATA,sha256=WBOruz17emj1t6_j4lWvjZ3ef1AfKaSWskp36wjpJkA,11151
39
+ praisonai-0.0.59rc2.dist-info/WHEEL,sha256=HBsDV7Hj4OTiS1GX6ua7iQXUQTB9UHftbBxr7Q8Xm9c,110
40
+ praisonai-0.0.59rc2.dist-info/entry_points.txt,sha256=jB078LEGLY3Ky_indhclomRIVVpXrPSksHjJ-tcBZ-o,133
41
+ praisonai-0.0.59rc2.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: poetry-core 1.9.0
3
+ Root-Is-Purelib: false
4
+ Tag: cp312-cp312-manylinux_2_35_x86_64
@@ -0,0 +1,5 @@
1
+ [console_scripts]
2
+ post-install=setup.post_install:main
3
+ praisonai=praisonai.__main__:main
4
+ setup-conda-env=setup.setup_conda_env:main
5
+