PraisonAI 0.0.36__py3-none-any.whl → 0.0.37__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 +12 -8
- praisonai/deploy.py +1 -1
- {praisonai-0.0.36.dist-info → praisonai-0.0.37.dist-info}/METADATA +25 -1
- {praisonai-0.0.36.dist-info → praisonai-0.0.37.dist-info}/RECORD +7 -7
- {praisonai-0.0.36.dist-info → praisonai-0.0.37.dist-info}/LICENSE +0 -0
- {praisonai-0.0.36.dist-info → praisonai-0.0.37.dist-info}/WHEEL +0 -0
- {praisonai-0.0.36.dist-info → praisonai-0.0.37.dist-info}/entry_points.txt +0 -0
praisonai/agents_generator.py
CHANGED
|
@@ -26,12 +26,12 @@ from praisonai_tools import BaseTool
|
|
|
26
26
|
import os
|
|
27
27
|
import logging
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
agentops_exists = False
|
|
30
30
|
try:
|
|
31
31
|
import agentops
|
|
32
|
-
|
|
32
|
+
agentops_exists = True
|
|
33
33
|
except ImportError:
|
|
34
|
-
|
|
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
|
-
|
|
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
|
|
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.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
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PraisonAI
|
|
3
|
-
Version: 0.0.
|
|
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
|
|
@@ -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=K4I5o7UliVhIb9nSFoGsCsJpPe7Cxtsg4Mflgtp2pHE,15030
|
|
4
4
|
praisonai/auto.py,sha256=CpE9zUbdCP1wR0aLZWKVLxiLU9JOQprRNBK9WKDZVQo,7758
|
|
5
5
|
praisonai/chainlit_ui.py,sha256=uXo7KTuOH09cu_rLU5RU5JLVCKSc9FM5IcpuW_SVG90,12079
|
|
6
6
|
praisonai/cli.py,sha256=W_PL7bWnEEuFYBT24mh8171f7TiE_LdxVfrM16fp7Pc,10868
|
|
7
|
-
praisonai/deploy.py,sha256=
|
|
7
|
+
praisonai/deploy.py,sha256=mQkAIR4X3ZWQCgX-EIJ3rKPeft9bH4cnCj5IriHHG9o,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/public/fantasy.svg,sha256=4Gs3kIOux-pjGtw6ogI_rv5_viVJxnE5gRwGilsSg0o,1553
|
|
@@ -13,8 +13,8 @@ praisonai/public/movie.svg,sha256=aJ2EQ8vXZusVsF2SeuAVxP4RFJzQ14T26ejrGYdBgzk,12
|
|
|
13
13
|
praisonai/public/thriller.svg,sha256=2dYY72EcgbEyTxS4QzjAm37Y4srtPWEW4vCMFki98ZI,3163
|
|
14
14
|
praisonai/test.py,sha256=RZKq3UEFb6AnFFiHER3zBXfNmlteSLBlrTmOvnpnZLo,4092
|
|
15
15
|
praisonai/version.py,sha256=ugyuFliEqtAwQmH4sTlc16YXKYbFWDmfyk87fErB8-8,21
|
|
16
|
-
praisonai-0.0.
|
|
17
|
-
praisonai-0.0.
|
|
18
|
-
praisonai-0.0.
|
|
19
|
-
praisonai-0.0.
|
|
20
|
-
praisonai-0.0.
|
|
16
|
+
praisonai-0.0.37.dist-info/LICENSE,sha256=kqvFysVlnFxYOu0HxCe2HlmZmJtdmNGOxWRRkT9TsWc,1035
|
|
17
|
+
praisonai-0.0.37.dist-info/METADATA,sha256=Xpz7nJpDWwWqRC69QYlUVUwv2ecyxdATFgwkhjxhYw0,10359
|
|
18
|
+
praisonai-0.0.37.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
19
|
+
praisonai-0.0.37.dist-info/entry_points.txt,sha256=Qg41eW3A1-dvdV5tF7LqChfYof8Rihk2rN1fiEE3vnk,53
|
|
20
|
+
praisonai-0.0.37.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|