PraisonAI 0.0.69__cp312-cp312-manylinux_2_35_x86_64.whl → 0.0.70__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.

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.69 gunicorn markdown\n")
59
+ file.write("RUN pip install flask praisonai==0.0.70 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
 
praisonai/ui/code.py CHANGED
@@ -216,13 +216,19 @@ async def setup_agent(settings):
216
216
  # Save in thread metadata
217
217
  thread_id = cl.user_session.get("thread_id")
218
218
  if thread_id:
219
- thread = await cl_data.get_thread(thread_id)
219
+ thread = await cl_data._data_layer.get_thread(thread_id)
220
220
  if thread:
221
221
  metadata = thread.get("metadata", {})
222
+ if isinstance(metadata, str):
223
+ try:
224
+ metadata = json.loads(metadata)
225
+ except json.JSONDecodeError:
226
+ metadata = {}
227
+
222
228
  metadata["model_name"] = model_name
223
229
 
224
230
  # Always store metadata as a JSON string
225
- await cl_data.update_thread(thread_id, metadata=json.dumps(metadata))
231
+ await cl_data._data_layer.update_thread(thread_id, metadata=json.dumps(metadata))
226
232
 
227
233
  # Update the user session with the new metadata
228
234
  cl.user_session.set("metadata", metadata)
@@ -318,7 +324,14 @@ async def on_chat_resume(thread: ThreadDict):
318
324
  message_history.append({"role": "user", "content": message.get("output", "")})
319
325
  elif msg_type == "assistant_message":
320
326
  message_history.append({"role": "assistant", "content": message.get("output", "")})
327
+ elif msg_type == "run":
328
+ # Handle 'run' type messages
329
+ if message.get("isError"):
330
+ message_history.append({"role": "system", "content": f"Error: {message.get('output', '')}"})
331
+ else:
332
+ # You might want to handle non-error 'run' messages differently
333
+ pass
321
334
  else:
322
- logger.warning(f"Message without type: {message}")
335
+ logger.warning(f"Message without recognized type: {message}")
323
336
 
324
337
  cl.user_session.set("message_history", message_history)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PraisonAI
3
- Version: 0.0.69
3
+ Version: 0.0.70
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
@@ -4,7 +4,7 @@ praisonai/agents_generator.py,sha256=8d1WRbubvEkBrW1HZ7_xnGyqgJi0yxmXa3MgTIqef1c
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=M23MbUUzNS7z9ZHz3cGawUrGWzXM-FzhMyiRWQPZSEk,18485
7
- praisonai/deploy.py,sha256=t03D5UlJEhLaZ-rkMqiWxm9FtxIqNy3EGpcZMqc3Aik,6028
7
+ praisonai/deploy.py,sha256=4zEREC97vaLRB5Xii388u8Wrx3hn3L-mP_pcIQsFtfM,6028
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
@@ -31,7 +31,7 @@ praisonai/setup/setup_conda_env.sh,sha256=te7s0KHsTi7XM-vkNvE0dKC1HeU2tXxqE-sPUS
31
31
  praisonai/test.py,sha256=OL-wesjA5JTohr8rtr6kWoaS4ImkJg2l0GXJ-dUUfRU,4090
32
32
  praisonai/train.py,sha256=DvORlrwKOD-2v4r_z84eV3LsfzpNs-WnPKb5cQB3_t4,11071
33
33
  praisonai/ui/chat.py,sha256=V4kG2jog8FK0zHbcG_gTS58JzeriG_ZTorCjEnjJz38,9383
34
- praisonai/ui/code.py,sha256=5UNZpQtmvW2Mh30v84GnB7ouvKUw1GVIxD89em-_0Ss,10292
34
+ praisonai/ui/code.py,sha256=eRjV4aIXYbdJndNQEe5wtnD2LnllXw0-g4xSnffLG28,10874
35
35
  praisonai/ui/context.py,sha256=oWO2I_WBZb7kZnuXItf18EJX0ZQv-1nAd8rxhwhuuDU,11871
36
36
  praisonai/ui/public/fantasy.svg,sha256=4Gs3kIOux-pjGtw6ogI_rv5_viVJxnE5gRwGilsSg0o,1553
37
37
  praisonai/ui/public/game.svg,sha256=y2QMaA01m8XzuDjTOBWzupOC3-TpnUl9ah89mIhviUw,2406
@@ -41,8 +41,8 @@ praisonai/ui/public/movie.svg,sha256=aJ2EQ8vXZusVsF2SeuAVxP4RFJzQ14T26ejrGYdBgzk
41
41
  praisonai/ui/public/thriller.svg,sha256=2dYY72EcgbEyTxS4QzjAm37Y4srtPWEW4vCMFki98ZI,3163
42
42
  praisonai/ui/sql_alchemy.py,sha256=kf025P_37C505YDDJZ-dPSmN_d62J2DCrkxbDAzXyrM,29884
43
43
  praisonai/version.py,sha256=ugyuFliEqtAwQmH4sTlc16YXKYbFWDmfyk87fErB8-8,21
44
- praisonai-0.0.69.dist-info/LICENSE,sha256=kqvFysVlnFxYOu0HxCe2HlmZmJtdmNGOxWRRkT9TsWc,1035
45
- praisonai-0.0.69.dist-info/METADATA,sha256=XVg1qqHFtnNMbqX1Mo6SVgWOiZbDTEloiJpDlvV7gO0,11397
46
- praisonai-0.0.69.dist-info/WHEEL,sha256=HBsDV7Hj4OTiS1GX6ua7iQXUQTB9UHftbBxr7Q8Xm9c,110
47
- praisonai-0.0.69.dist-info/entry_points.txt,sha256=jB078LEGLY3Ky_indhclomRIVVpXrPSksHjJ-tcBZ-o,133
48
- praisonai-0.0.69.dist-info/RECORD,,
44
+ praisonai-0.0.70.dist-info/LICENSE,sha256=kqvFysVlnFxYOu0HxCe2HlmZmJtdmNGOxWRRkT9TsWc,1035
45
+ praisonai-0.0.70.dist-info/METADATA,sha256=4XKqdOgDGcazLtA64vhExcx_ZJcNWsYjzKFCFg40ErA,11397
46
+ praisonai-0.0.70.dist-info/WHEEL,sha256=HBsDV7Hj4OTiS1GX6ua7iQXUQTB9UHftbBxr7Q8Xm9c,110
47
+ praisonai-0.0.70.dist-info/entry_points.txt,sha256=jB078LEGLY3Ky_indhclomRIVVpXrPSksHjJ-tcBZ-o,133
48
+ praisonai-0.0.70.dist-info/RECORD,,