PraisonAI 0.0.41__py3-none-any.whl → 0.0.42__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/agents_generator.py +10 -0
- praisonai/deploy.py +1 -1
- {praisonai-0.0.41.dist-info → praisonai-0.0.42.dist-info}/METADATA +9 -93
- {praisonai-0.0.41.dist-info → praisonai-0.0.42.dist-info}/RECORD +7 -7
- {praisonai-0.0.41.dist-info → praisonai-0.0.42.dist-info}/LICENSE +0 -0
- {praisonai-0.0.41.dist-info → praisonai-0.0.42.dist-info}/WHEEL +0 -0
- {praisonai-0.0.41.dist-info → praisonai-0.0.42.dist-info}/entry_points.txt +0 -0
praisonai/agents_generator.py
CHANGED
|
@@ -279,6 +279,9 @@ class AgentsGenerator:
|
|
|
279
279
|
else: # framework=crewai
|
|
280
280
|
if agentops_exists:
|
|
281
281
|
agentops.init(os.environ.get("AGENTOPS_API_KEY"), tags=["crewai"])
|
|
282
|
+
|
|
283
|
+
tasks_dict = {}
|
|
284
|
+
|
|
282
285
|
for role, details in config['roles'].items():
|
|
283
286
|
role_filled = details['role'].format(topic=topic)
|
|
284
287
|
goal_filled = details['goal'].format(topic=topic)
|
|
@@ -352,7 +355,14 @@ class AgentsGenerator:
|
|
|
352
355
|
task.callback = self.task_callback
|
|
353
356
|
|
|
354
357
|
tasks.append(task)
|
|
358
|
+
tasks_dict[task_name] = task
|
|
355
359
|
|
|
360
|
+
for role, details in config['roles'].items():
|
|
361
|
+
for task_name, task_details in details.get('tasks', {}).items():
|
|
362
|
+
task = tasks_dict[task_name]
|
|
363
|
+
context_tasks = [tasks_dict[ctx] for ctx in task_details.get('context', []) if ctx in tasks_dict]
|
|
364
|
+
task.context = context_tasks
|
|
365
|
+
|
|
356
366
|
crew = Crew(
|
|
357
367
|
agents=list(agents.values()),
|
|
358
368
|
tasks=tasks,
|
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.42 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
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PraisonAI
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.42
|
|
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
|
|
@@ -34,6 +34,14 @@ Project-URL: Homepage, https://docs.praison.ai
|
|
|
34
34
|
Project-URL: Repository, https://github.com/mervinpraison/PraisonAI
|
|
35
35
|
Description-Content-Type: text/markdown
|
|
36
36
|
|
|
37
|
+
<p align="center">
|
|
38
|
+
<picture>
|
|
39
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/images/praisonai-logo-large.png">
|
|
40
|
+
<source media="(prefers-color-scheme: light)" srcset="docs/images/praisonai-logo-black-large.png">
|
|
41
|
+
<img alt="PraisonAI Logo" src="docs/images/praisonai-logo-black-large.png">
|
|
42
|
+
</picture>
|
|
43
|
+
</p>
|
|
44
|
+
|
|
37
45
|
# Praison AI
|
|
38
46
|
|
|
39
47
|
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.
|
|
@@ -46,14 +54,6 @@ praisonai --init create a movie script about dog in moon
|
|
|
46
54
|
praisonai
|
|
47
55
|
```
|
|
48
56
|
|
|
49
|
-
<p align="center">
|
|
50
|
-
<picture>
|
|
51
|
-
<source media="(prefers-color-scheme: dark)" srcset="docs/images/praisonai-logo-large.png">
|
|
52
|
-
<source media="(prefers-color-scheme: light)" srcset="docs/images/praisonai-logo-black-large.png">
|
|
53
|
-
<img alt="PraisonAI Logo" src="docs/images/praisonai-logo-black-large.png">
|
|
54
|
-
</picture>
|
|
55
|
-
</p>
|
|
56
|
-
|
|
57
57
|
## Installation
|
|
58
58
|
|
|
59
59
|
```bash
|
|
@@ -183,12 +183,6 @@ roles:
|
|
|
183
183
|
- InternetSearchTool
|
|
184
184
|
```
|
|
185
185
|
|
|
186
|
-
## Test
|
|
187
|
-
|
|
188
|
-
```bash
|
|
189
|
-
python -m unittest tests.test
|
|
190
|
-
```
|
|
191
|
-
|
|
192
186
|
## Agents Playbook
|
|
193
187
|
|
|
194
188
|
### Simple Playbook Example
|
|
@@ -207,49 +201,6 @@ roles:
|
|
|
207
201
|
expected_output: 'Complete script ready for production.'
|
|
208
202
|
```
|
|
209
203
|
|
|
210
|
-
### Detailed Playbook Example
|
|
211
|
-
|
|
212
|
-
```yaml
|
|
213
|
-
framework: crewai
|
|
214
|
-
topic: Artificial Intelligence
|
|
215
|
-
roles:
|
|
216
|
-
movie_concept_creator:
|
|
217
|
-
backstory: 'Creative thinker with a deep understanding of cinematic storytelling,
|
|
218
|
-
capable of using AI-generated storylines to create unique and compelling movie
|
|
219
|
-
ideas.'
|
|
220
|
-
goal: Generate engaging movie concepts using AI storylines
|
|
221
|
-
role: Movie Concept Creator
|
|
222
|
-
tasks:
|
|
223
|
-
movie_concept_development:
|
|
224
|
-
description: 'Develop movie concepts from AI-generated storylines, ensuring
|
|
225
|
-
they are engaging and have strong narrative arcs.'
|
|
226
|
-
expected_output: 'Well-structured movie concept document with character
|
|
227
|
-
bios, settings, and plot outlines.'
|
|
228
|
-
screenwriter:
|
|
229
|
-
backstory: 'Expert in writing engaging dialogue and script structure, able to
|
|
230
|
-
turn movie concepts into production-ready scripts.'
|
|
231
|
-
goal: Write compelling scripts based on movie concepts
|
|
232
|
-
role: Screenwriter
|
|
233
|
-
tasks:
|
|
234
|
-
scriptwriting_task:
|
|
235
|
-
description: 'Turn movie concepts into polished scripts with well-developed
|
|
236
|
-
characters, strong dialogue, and effective scene transitions.'
|
|
237
|
-
expected_output: 'Production-ready script with a beginning, middle, and
|
|
238
|
-
end, along with character development and engaging dialogues.'
|
|
239
|
-
editor:
|
|
240
|
-
backstory: 'Adept at identifying inconsistencies, improving language usage,
|
|
241
|
-
and maintaining the overall flow of the script.'
|
|
242
|
-
goal: Refine the scripts and ensure continuity of the movie storyline
|
|
243
|
-
role: Editor
|
|
244
|
-
tasks:
|
|
245
|
-
editing_task:
|
|
246
|
-
description: 'Review, edit, and refine the scripts to ensure they are cohesive
|
|
247
|
-
and follow a well-structured narrative.'
|
|
248
|
-
expected_output: 'A polished final draft of the script with no inconsistencies,
|
|
249
|
-
strong character development, and effective dialogue.'
|
|
250
|
-
dependencies: []
|
|
251
|
-
```
|
|
252
|
-
|
|
253
204
|
## Include praisonai package in your project
|
|
254
205
|
|
|
255
206
|
```python
|
|
@@ -280,41 +231,6 @@ if __name__ == "__main__":
|
|
|
280
231
|
auto()
|
|
281
232
|
```
|
|
282
233
|
|
|
283
|
-
## Include CrewAI Tools
|
|
284
|
-
|
|
285
|
-
```
|
|
286
|
-
pip install "praisonai[crewai-tools]"
|
|
287
|
-
```
|
|
288
|
-
|
|
289
|
-
## Deploy
|
|
290
|
-
|
|
291
|
-
```bash
|
|
292
|
-
gcloud init
|
|
293
|
-
gcloud services enable run.googleapis.com
|
|
294
|
-
gcloud services enable containerregistry.googleapis.com
|
|
295
|
-
gcloud services enable cloudbuild.googleapis.com
|
|
296
|
-
|
|
297
|
-
export OPENAI_MODEL_NAME="gpt-4o"
|
|
298
|
-
export OPENAI_API_KEY="Enter your API key"
|
|
299
|
-
export OPENAI_API_BASE="https://api.openai.com/v1"
|
|
300
|
-
|
|
301
|
-
yes | gcloud auth configure-docker us-central1-docker.pkg.dev
|
|
302
|
-
gcloud artifacts repositories create praisonai-repository --repository-format=docker --location=us-central1
|
|
303
|
-
|
|
304
|
-
PROJECT_ID=$(gcloud config get-value project)
|
|
305
|
-
TAG="latest"
|
|
306
|
-
docker build --platform linux/amd64 -t gcr.io/${PROJECT_ID}/praisonai-app:${TAG} .
|
|
307
|
-
docker tag gcr.io/${PROJECT_ID}/praisonai-app:${TAG} us-central1-docker.pkg.dev/${PROJECT_ID}/praisonai-repository/praisonai-app:${TAG}
|
|
308
|
-
docker push us-central1-docker.pkg.dev/${PROJECT_ID}/praisonai-repository/praisonai-app:${TAG}
|
|
309
|
-
|
|
310
|
-
gcloud run deploy praisonai-service \
|
|
311
|
-
--image us-central1-docker.pkg.dev/${PROJECT_ID}/praisonai-repository/praisonai-app:${TAG} \
|
|
312
|
-
--platform managed \
|
|
313
|
-
--region us-central1 \
|
|
314
|
-
--allow-unauthenticated \
|
|
315
|
-
--set-env-vars OPENAI_MODEL_NAME=${OPENAI_MODEL_NAME},OPENAI_API_KEY=${OPENAI_API_KEY},OPENAI_API_BASE=${OPENAI_API_BASE}
|
|
316
|
-
```
|
|
317
|
-
|
|
318
234
|
### Commands to Install Dependencies:
|
|
319
235
|
|
|
320
236
|
1. **Install all dependencies, including dev dependencies:**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
praisonai/__init__.py,sha256=JrgyPlzZfLlozoW7SHZ1nVJ63rLPR3ki2k5ZPywYrnI,175
|
|
2
2
|
praisonai/__main__.py,sha256=MVgsjMThjBexHt4nhd760JCqvP4x0IQcwo8kULOK4FQ,144
|
|
3
|
-
praisonai/agents_generator.py,sha256=
|
|
3
|
+
praisonai/agents_generator.py,sha256=8d1WRbubvEkBrW1HZ7_xnGyqgJi0yxmXa3MgTIqef1c,19127
|
|
4
4
|
praisonai/auto.py,sha256=9spTXqj47Hmmqv5QHRYE_RzSVHH_KoPbaZjskUj2UcE,7895
|
|
5
5
|
praisonai/chainlit_ui.py,sha256=bNR7s509lp0I9JlJNvwCZRUZosC64qdvlFCt8NmFamQ,12216
|
|
6
6
|
praisonai/cli.py,sha256=cwuXGubuac7yTeiqx5o5S7ZN7erZAfe-6p35b3HM5SU,11066
|
|
7
|
-
praisonai/deploy.py,sha256=
|
|
7
|
+
praisonai/deploy.py,sha256=zDllG5qOzprqN6gxLQp4GZVDxsAhUH8gpUFZlvc3ZK8,6031
|
|
8
8
|
praisonai/inbuilt_tools/__init__.py,sha256=mUKnbL6Gram9c9f2m8wJwEzURBLmPEOcHzwySBH89YA,74
|
|
9
9
|
praisonai/inbuilt_tools/autogen_tools.py,sha256=svYkM2N7DVFvbiwgoAS7U_MqTOD8rHf8VD3BaFUV5_Y,14907
|
|
10
10
|
praisonai/inc/__init__.py,sha256=sPDlYBBwdk0VlWzaaM_lG0_LD07lS2HRGvPdxXJFiYg,62
|
|
@@ -15,8 +15,8 @@ praisonai/public/movie.svg,sha256=aJ2EQ8vXZusVsF2SeuAVxP4RFJzQ14T26ejrGYdBgzk,12
|
|
|
15
15
|
praisonai/public/thriller.svg,sha256=2dYY72EcgbEyTxS4QzjAm37Y4srtPWEW4vCMFki98ZI,3163
|
|
16
16
|
praisonai/test.py,sha256=RZKq3UEFb6AnFFiHER3zBXfNmlteSLBlrTmOvnpnZLo,4092
|
|
17
17
|
praisonai/version.py,sha256=ugyuFliEqtAwQmH4sTlc16YXKYbFWDmfyk87fErB8-8,21
|
|
18
|
-
praisonai-0.0.
|
|
19
|
-
praisonai-0.0.
|
|
20
|
-
praisonai-0.0.
|
|
21
|
-
praisonai-0.0.
|
|
22
|
-
praisonai-0.0.
|
|
18
|
+
praisonai-0.0.42.dist-info/LICENSE,sha256=kqvFysVlnFxYOu0HxCe2HlmZmJtdmNGOxWRRkT9TsWc,1035
|
|
19
|
+
praisonai-0.0.42.dist-info/METADATA,sha256=UUZhr0iagP5BMqQD9fHtX9B-5nrzli787_LoKOXPhqk,7967
|
|
20
|
+
praisonai-0.0.42.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
21
|
+
praisonai-0.0.42.dist-info/entry_points.txt,sha256=Qg41eW3A1-dvdV5tF7LqChfYof8Rihk2rN1fiEE3vnk,53
|
|
22
|
+
praisonai-0.0.42.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|