PraisonAI 0.0.36__tar.gz → 0.0.37__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.36
3
+ Version: 0.0.37
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
@@ -299,6 +299,30 @@ gcloud run deploy praisonai-service \
299
299
  --set-env-vars OPENAI_MODEL_NAME=${OPENAI_MODEL_NAME},OPENAI_API_KEY=${OPENAI_API_KEY},OPENAI_API_BASE=${OPENAI_API_BASE}
300
300
  ```
301
301
 
302
+ ### Commands to Install Dependencies:
303
+
304
+ 1. **Install all dependencies, including dev dependencies:**
305
+ ```sh
306
+ poetry install
307
+ ```
308
+
309
+ 2. **Install only documentation dependencies:**
310
+ ```sh
311
+ poetry install --with docs
312
+ ```
313
+
314
+ 3. **Install only test dependencies:**
315
+ ```sh
316
+ poetry install --with test
317
+ ```
318
+
319
+ 4. **Install only dev dependencies:**
320
+ ```sh
321
+ poetry install --with dev
322
+ ```
323
+
324
+ This configuration ensures that your development dependencies are correctly categorized and installed as needed.
325
+
302
326
  ## Other Models
303
327
 
304
328
  ```bash
@@ -271,6 +271,30 @@ gcloud run deploy praisonai-service \
271
271
  --set-env-vars OPENAI_MODEL_NAME=${OPENAI_MODEL_NAME},OPENAI_API_KEY=${OPENAI_API_KEY},OPENAI_API_BASE=${OPENAI_API_BASE}
272
272
  ```
273
273
 
274
+ ### Commands to Install Dependencies:
275
+
276
+ 1. **Install all dependencies, including dev dependencies:**
277
+ ```sh
278
+ poetry install
279
+ ```
280
+
281
+ 2. **Install only documentation dependencies:**
282
+ ```sh
283
+ poetry install --with docs
284
+ ```
285
+
286
+ 3. **Install only test dependencies:**
287
+ ```sh
288
+ poetry install --with test
289
+ ```
290
+
291
+ 4. **Install only dev dependencies:**
292
+ ```sh
293
+ poetry install --with dev
294
+ ```
295
+
296
+ This configuration ensures that your development dependencies are correctly categorized and installed as needed.
297
+
274
298
  ## Other Models
275
299
 
276
300
  ```bash
@@ -26,12 +26,12 @@ from praisonai_tools import BaseTool
26
26
  import os
27
27
  import logging
28
28
 
29
- agentops = False
29
+ agentops_exists = False
30
30
  try:
31
31
  import agentops
32
- agentops = True
32
+ agentops_exists = True
33
33
  except ImportError:
34
- agentops = False
34
+ agentops_exists = False
35
35
 
36
36
  os.environ["OTEL_SDK_DISABLED"] = "true"
37
37
 
@@ -221,6 +221,8 @@ class AgentsGenerator:
221
221
  # print(self.config_list)
222
222
  llm_config = {"config_list": self.config_list}
223
223
 
224
+ if agentops_exists:
225
+ agentops.init(os.environ.get("AGENTOPS_API_KEY"), tags=["autogen"])
224
226
  # Assuming the user proxy agent is set up as per your requirements
225
227
  user_proxy = autogen.UserProxyAgent(
226
228
  name="User",
@@ -264,10 +266,13 @@ class AgentsGenerator:
264
266
  # Additional fields like carryover can be added based on dependencies
265
267
  }
266
268
  tasks.append(chat_task)
267
-
268
269
  response = user_proxy.initiate_chats(tasks)
269
270
  result = "### Output ###\n"+response[-1].summary if hasattr(response[-1], 'summary') else ""
271
+ if agentops_exists:
272
+ agentops.end_session("Success")
270
273
  else:
274
+ if agentops_exists:
275
+ agentops.init(os.environ.get("AGENTOPS_API_KEY"), tags=["crewai"])
271
276
  for role, details in config['roles'].items():
272
277
  role_filled = details['role'].format(topic=topic)
273
278
  goal_filled = details['goal'].format(topic=topic)
@@ -294,15 +299,12 @@ class AgentsGenerator:
294
299
  task.callback = self.task_callback
295
300
 
296
301
  tasks.append(task)
297
- if agentops:
298
- agentops.init()
302
+
299
303
  crew = Crew(
300
304
  agents=list(agents.values()),
301
305
  tasks=tasks,
302
306
  verbose=2
303
307
  )
304
- if agentops:
305
- agentops.end_session("Success")
306
308
 
307
309
  self.logger.debug("Final Crew Configuration:")
308
310
  self.logger.debug(f"Agents: {crew.agents}")
@@ -310,5 +312,7 @@ class AgentsGenerator:
310
312
 
311
313
  response = crew.kickoff()
312
314
  result = f"### Task Output ###\n{response}"
315
+ if agentops_exists:
316
+ agentops.end_session("Success")
313
317
  return result
314
318
 
@@ -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.36 gunicorn markdown\n")
59
+ file.write("RUN pip install flask praisonai==0.0.37 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.36"
3
+ version = "0.0.37"
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 = ""
@@ -26,10 +26,47 @@ gradio = {version = ">=4.26.0", optional = true}
26
26
  flask = {version = ">=3.0.0", optional = true}
27
27
  agentops = {version = "==0.2.3", optional = true}
28
28
 
29
- [tool.poetry.dev-dependencies]
29
+ [tool.poetry.group.docs.dependencies]
30
+ mkdocs = "*"
31
+ markdown-include = "*"
32
+ mkdocs-material = "*"
33
+ mkdocs-jupyter = "*"
34
+ mkdocs-glightbox = "*"
35
+ pymdown-extensions = "*"
36
+ Pygments = "*"
37
+ mkdocstrings = "*"
38
+ mkdocs-apidoc = "*"
39
+ mkdocstrings-python = "*"
40
+ pdoc3 = "*"
41
+
42
+ [tool.poetry.group.test.dependencies]
43
+ pytest = "8.2.2"
44
+ pre-commit = "3.7.1"
45
+ unittest-xml-reporting = "3.2.0"
46
+ xmlrunner = "*"
47
+ unittest2 = "*"
48
+
49
+ [tool.poetry.group.dev.dependencies]
30
50
  pytest = "8.2.2"
31
51
  pre-commit = "3.7.1"
32
52
  unittest-xml-reporting = "3.2.0"
53
+ mkdocs = "*"
54
+ markdown-include = "*"
55
+ mkdocs-material = "*"
56
+ mkdocs-jupyter = "*"
57
+ mkdocs-glightbox = "*"
58
+ pymdown-extensions = "*"
59
+ Pygments = "*"
60
+ mkdocstrings = "*"
61
+ mkdocs-apidoc = "*"
62
+ mkdocstrings-python = "*"
63
+ pdoc3 = "*"
64
+ xmlrunner = "*"
65
+ unittest2 = "*"
66
+ chainlit = "^1.1.301"
67
+ gradio = ">=4.26.0"
68
+ flask = ">=3.0.0"
69
+ agentops = "==0.2.3"
33
70
 
34
71
  [build-system]
35
72
  requires = ["poetry-core"]
@@ -42,4 +79,4 @@ praisonai = "praisonai.__main__:main"
42
79
  ui = ["chainlit"]
43
80
  gradio = ["gradio"]
44
81
  api = ["flask"]
45
- agentops = ["agentops"]
82
+ agentops = ["agentops"]
File without changes
File without changes
File without changes
File without changes