PraisonAI 0.0.41__tar.gz → 0.0.42__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.

Potentially problematic release.


This version of PraisonAI might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PraisonAI
3
- Version: 0.0.41
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,3 +1,11 @@
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="docs/images/praisonai-logo-large.png">
4
+ <source media="(prefers-color-scheme: light)" srcset="docs/images/praisonai-logo-black-large.png">
5
+ <img alt="PraisonAI Logo" src="docs/images/praisonai-logo-black-large.png">
6
+ </picture>
7
+ </p>
8
+
1
9
  # Praison AI
2
10
 
3
11
  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.
@@ -10,14 +18,6 @@ praisonai --init create a movie script about dog in moon
10
18
  praisonai
11
19
  ```
12
20
 
13
- <p align="center">
14
- <picture>
15
- <source media="(prefers-color-scheme: dark)" srcset="docs/images/praisonai-logo-large.png">
16
- <source media="(prefers-color-scheme: light)" srcset="docs/images/praisonai-logo-black-large.png">
17
- <img alt="PraisonAI Logo" src="docs/images/praisonai-logo-black-large.png">
18
- </picture>
19
- </p>
20
-
21
21
  ## Installation
22
22
 
23
23
  ```bash
@@ -147,12 +147,6 @@ roles:
147
147
  - InternetSearchTool
148
148
  ```
149
149
 
150
- ## Test
151
-
152
- ```bash
153
- python -m unittest tests.test
154
- ```
155
-
156
150
  ## Agents Playbook
157
151
 
158
152
  ### Simple Playbook Example
@@ -171,49 +165,6 @@ roles:
171
165
  expected_output: 'Complete script ready for production.'
172
166
  ```
173
167
 
174
- ### Detailed Playbook Example
175
-
176
- ```yaml
177
- framework: crewai
178
- topic: Artificial Intelligence
179
- roles:
180
- movie_concept_creator:
181
- backstory: 'Creative thinker with a deep understanding of cinematic storytelling,
182
- capable of using AI-generated storylines to create unique and compelling movie
183
- ideas.'
184
- goal: Generate engaging movie concepts using AI storylines
185
- role: Movie Concept Creator
186
- tasks:
187
- movie_concept_development:
188
- description: 'Develop movie concepts from AI-generated storylines, ensuring
189
- they are engaging and have strong narrative arcs.'
190
- expected_output: 'Well-structured movie concept document with character
191
- bios, settings, and plot outlines.'
192
- screenwriter:
193
- backstory: 'Expert in writing engaging dialogue and script structure, able to
194
- turn movie concepts into production-ready scripts.'
195
- goal: Write compelling scripts based on movie concepts
196
- role: Screenwriter
197
- tasks:
198
- scriptwriting_task:
199
- description: 'Turn movie concepts into polished scripts with well-developed
200
- characters, strong dialogue, and effective scene transitions.'
201
- expected_output: 'Production-ready script with a beginning, middle, and
202
- end, along with character development and engaging dialogues.'
203
- editor:
204
- backstory: 'Adept at identifying inconsistencies, improving language usage,
205
- and maintaining the overall flow of the script.'
206
- goal: Refine the scripts and ensure continuity of the movie storyline
207
- role: Editor
208
- tasks:
209
- editing_task:
210
- description: 'Review, edit, and refine the scripts to ensure they are cohesive
211
- and follow a well-structured narrative.'
212
- expected_output: 'A polished final draft of the script with no inconsistencies,
213
- strong character development, and effective dialogue.'
214
- dependencies: []
215
- ```
216
-
217
168
  ## Include praisonai package in your project
218
169
 
219
170
  ```python
@@ -244,41 +195,6 @@ if __name__ == "__main__":
244
195
  auto()
245
196
  ```
246
197
 
247
- ## Include CrewAI Tools
248
-
249
- ```
250
- pip install "praisonai[crewai-tools]"
251
- ```
252
-
253
- ## Deploy
254
-
255
- ```bash
256
- gcloud init
257
- gcloud services enable run.googleapis.com
258
- gcloud services enable containerregistry.googleapis.com
259
- gcloud services enable cloudbuild.googleapis.com
260
-
261
- export OPENAI_MODEL_NAME="gpt-4o"
262
- export OPENAI_API_KEY="Enter your API key"
263
- export OPENAI_API_BASE="https://api.openai.com/v1"
264
-
265
- yes | gcloud auth configure-docker us-central1-docker.pkg.dev
266
- gcloud artifacts repositories create praisonai-repository --repository-format=docker --location=us-central1
267
-
268
- PROJECT_ID=$(gcloud config get-value project)
269
- TAG="latest"
270
- docker build --platform linux/amd64 -t gcr.io/${PROJECT_ID}/praisonai-app:${TAG} .
271
- docker tag gcr.io/${PROJECT_ID}/praisonai-app:${TAG} us-central1-docker.pkg.dev/${PROJECT_ID}/praisonai-repository/praisonai-app:${TAG}
272
- docker push us-central1-docker.pkg.dev/${PROJECT_ID}/praisonai-repository/praisonai-app:${TAG}
273
-
274
- gcloud run deploy praisonai-service \
275
- --image us-central1-docker.pkg.dev/${PROJECT_ID}/praisonai-repository/praisonai-app:${TAG} \
276
- --platform managed \
277
- --region us-central1 \
278
- --allow-unauthenticated \
279
- --set-env-vars OPENAI_MODEL_NAME=${OPENAI_MODEL_NAME},OPENAI_API_KEY=${OPENAI_API_KEY},OPENAI_API_BASE=${OPENAI_API_BASE}
280
- ```
281
-
282
198
  ### Commands to Install Dependencies:
283
199
 
284
200
  1. **Install all dependencies, including dev dependencies:**
@@ -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,
@@ -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.41 gunicorn markdown\n")
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
  [tool.poetry]
2
2
  name = "PraisonAI"
3
- version = "0.0.41"
3
+ version = "0.0.42"
4
4
  description = "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
  authors = ["Mervin Praison"]
6
6
  license = ""
File without changes
File without changes
File without changes
File without changes