pygpt-net 2.6.61__py3-none-any.whl → 2.6.63__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.
Files changed (86) hide show
  1. pygpt_net/CHANGELOG.txt +12 -0
  2. pygpt_net/__init__.py +3 -3
  3. pygpt_net/controller/chat/response.py +8 -2
  4. pygpt_net/controller/presets/editor.py +65 -1
  5. pygpt_net/controller/settings/profile.py +16 -4
  6. pygpt_net/controller/settings/workdir.py +30 -5
  7. pygpt_net/controller/theme/common.py +4 -2
  8. pygpt_net/controller/theme/markdown.py +2 -2
  9. pygpt_net/controller/theme/theme.py +2 -1
  10. pygpt_net/controller/ui/ui.py +31 -3
  11. pygpt_net/core/agents/custom/llama_index/runner.py +30 -52
  12. pygpt_net/core/agents/custom/runner.py +199 -76
  13. pygpt_net/core/agents/runners/llama_workflow.py +122 -12
  14. pygpt_net/core/agents/runners/openai_workflow.py +2 -1
  15. pygpt_net/core/node_editor/types.py +13 -1
  16. pygpt_net/core/render/web/renderer.py +76 -11
  17. pygpt_net/data/config/config.json +3 -3
  18. pygpt_net/data/config/models.json +3 -3
  19. pygpt_net/data/config/presets/agent_openai_b2b.json +1 -15
  20. pygpt_net/data/config/presets/agent_openai_coder.json +1 -15
  21. pygpt_net/data/config/presets/agent_openai_evolve.json +1 -23
  22. pygpt_net/data/config/presets/agent_openai_planner.json +1 -21
  23. pygpt_net/data/config/presets/agent_openai_researcher.json +1 -21
  24. pygpt_net/data/config/presets/agent_openai_supervisor.json +1 -13
  25. pygpt_net/data/config/presets/agent_openai_writer.json +1 -15
  26. pygpt_net/data/config/presets/agent_supervisor.json +1 -11
  27. pygpt_net/data/css/style.dark.css +18 -0
  28. pygpt_net/data/css/style.light.css +20 -1
  29. pygpt_net/data/js/app/runtime.js +4 -1
  30. pygpt_net/data/js/app.min.js +3 -2
  31. pygpt_net/data/locale/locale.de.ini +2 -0
  32. pygpt_net/data/locale/locale.en.ini +7 -0
  33. pygpt_net/data/locale/locale.es.ini +2 -0
  34. pygpt_net/data/locale/locale.fr.ini +2 -0
  35. pygpt_net/data/locale/locale.it.ini +2 -0
  36. pygpt_net/data/locale/locale.pl.ini +3 -1
  37. pygpt_net/data/locale/locale.uk.ini +2 -0
  38. pygpt_net/data/locale/locale.zh.ini +2 -0
  39. pygpt_net/item/ctx.py +23 -1
  40. pygpt_net/js_rc.py +13 -10
  41. pygpt_net/provider/agents/base.py +0 -0
  42. pygpt_net/provider/agents/llama_index/flow_from_schema.py +0 -0
  43. pygpt_net/provider/agents/llama_index/workflow/codeact.py +9 -6
  44. pygpt_net/provider/agents/llama_index/workflow/openai.py +38 -11
  45. pygpt_net/provider/agents/llama_index/workflow/planner.py +248 -28
  46. pygpt_net/provider/agents/llama_index/workflow/supervisor.py +60 -10
  47. pygpt_net/provider/agents/openai/agent.py +3 -1
  48. pygpt_net/provider/agents/openai/agent_b2b.py +17 -13
  49. pygpt_net/provider/agents/openai/agent_planner.py +617 -258
  50. pygpt_net/provider/agents/openai/agent_with_experts.py +4 -1
  51. pygpt_net/provider/agents/openai/agent_with_experts_feedback.py +8 -6
  52. pygpt_net/provider/agents/openai/agent_with_feedback.py +8 -6
  53. pygpt_net/provider/agents/openai/evolve.py +12 -8
  54. pygpt_net/provider/agents/openai/flow_from_schema.py +0 -0
  55. pygpt_net/provider/agents/openai/supervisor.py +292 -37
  56. pygpt_net/provider/api/openai/agents/response.py +1 -0
  57. pygpt_net/provider/api/x_ai/__init__.py +0 -0
  58. pygpt_net/provider/core/agent/__init__.py +0 -0
  59. pygpt_net/provider/core/agent/base.py +0 -0
  60. pygpt_net/provider/core/agent/json_file.py +0 -0
  61. pygpt_net/provider/core/config/patch.py +8 -0
  62. pygpt_net/provider/core/config/patches/patch_before_2_6_42.py +0 -0
  63. pygpt_net/provider/llms/base.py +0 -0
  64. pygpt_net/provider/llms/deepseek_api.py +0 -0
  65. pygpt_net/provider/llms/google.py +0 -0
  66. pygpt_net/provider/llms/hugging_face_api.py +0 -0
  67. pygpt_net/provider/llms/hugging_face_router.py +0 -0
  68. pygpt_net/provider/llms/mistral.py +0 -0
  69. pygpt_net/provider/llms/perplexity.py +0 -0
  70. pygpt_net/provider/llms/x_ai.py +0 -0
  71. pygpt_net/tools/agent_builder/tool.py +6 -0
  72. pygpt_net/tools/agent_builder/ui/dialogs.py +0 -41
  73. pygpt_net/ui/layout/toolbox/presets.py +14 -2
  74. pygpt_net/ui/main.py +2 -2
  75. pygpt_net/ui/widget/dialog/confirm.py +55 -5
  76. pygpt_net/ui/widget/draw/painter.py +90 -1
  77. pygpt_net/ui/widget/lists/preset.py +289 -25
  78. pygpt_net/ui/widget/node_editor/editor.py +53 -15
  79. pygpt_net/ui/widget/node_editor/node.py +82 -104
  80. pygpt_net/ui/widget/node_editor/view.py +4 -5
  81. pygpt_net/ui/widget/textarea/input.py +155 -21
  82. {pygpt_net-2.6.61.dist-info → pygpt_net-2.6.63.dist-info}/METADATA +22 -8
  83. {pygpt_net-2.6.61.dist-info → pygpt_net-2.6.63.dist-info}/RECORD +70 -70
  84. {pygpt_net-2.6.61.dist-info → pygpt_net-2.6.63.dist-info}/LICENSE +0 -0
  85. {pygpt_net-2.6.61.dist-info → pygpt_net-2.6.63.dist-info}/WHEEL +0 -0
  86. {pygpt_net-2.6.61.dist-info → pygpt_net-2.6.63.dist-info}/entry_points.txt +0 -0
@@ -6,7 +6,7 @@
6
6
  # GitHub: https://github.com/szczyglis-dev/py-gpt #
7
7
  # MIT License #
8
8
  # Created By : Marcin Szczygliński #
9
- # Updated Date: 2025.08.26 01:00:00 #
9
+ # Updated Date: 2025.09.26 17:00:00 #
10
10
  # ================================================== #
11
11
 
12
12
  import copy
@@ -265,6 +265,7 @@ class Agent(BaseAgent):
265
265
  break
266
266
 
267
267
  kwargs = self.prepare_model(model, window, previous_response_id, kwargs)
268
+ ctx.set_agent_name(bot_1.name)
268
269
  result = await Runner.run(
269
270
  bot_1,
270
271
  **kwargs
@@ -296,6 +297,7 @@ class Agent(BaseAgent):
296
297
  # -------- bot 2 --------
297
298
  kwargs["input"] = input_items
298
299
  kwargs = self.prepare_model(model_2, window, previous_response_id, kwargs)
300
+ ctx.set_agent_name(bot_2.name)
299
301
  result = await Runner.run(
300
302
  bot_2,
301
303
  **kwargs
@@ -329,6 +331,7 @@ class Agent(BaseAgent):
329
331
  # -------- bot 1 --------
330
332
  kwargs["input"] = input_items
331
333
  kwargs = self.prepare_model(model, window, previous_response_id, kwargs)
334
+ ctx.set_agent_name(bot_1.name)
332
335
  result = Runner.run_streamed(
333
336
  bot_1,
334
337
  **kwargs
@@ -337,13 +340,13 @@ class Agent(BaseAgent):
337
340
  handler.reset()
338
341
 
339
342
  # bot 1 title
340
- title = f"\n\n**{bot_1_name}**\n\n"
341
- ctx.stream = title
343
+ # title = f"\n\n**{bot_1_name}**\n\n"
344
+ # ctx.stream = title
342
345
  bridge.on_step(ctx, begin)
343
346
  begin = False
344
347
  handler.begin = begin
345
- if not use_partial_ctx:
346
- handler.to_buffer(title)
348
+ # if not use_partial_ctx:
349
+ # handler.to_buffer(title)
347
350
  async for event in result.stream_events():
348
351
  if bridge.stopped():
349
352
  result.cancel()
@@ -376,6 +379,7 @@ class Agent(BaseAgent):
376
379
  # -------- bot 2 --------
377
380
  kwargs["input"] = input_items
378
381
  kwargs = self.prepare_model(model_2, window, previous_response_id, kwargs)
382
+ ctx.set_agent_name(bot_2.name)
379
383
  result = Runner.run_streamed(
380
384
  bot_2,
381
385
  **kwargs
@@ -383,11 +387,11 @@ class Agent(BaseAgent):
383
387
  handler.reset()
384
388
 
385
389
  # bot 2 title
386
- title = f"\n\n**{bot_2_name}**\n\n"
387
- ctx.stream = title
390
+ # title = f"\n\n**{bot_2_name}**\n\n"
391
+ # ctx.stream = title
388
392
  bridge.on_step(ctx, False)
389
- if not use_partial_ctx:
390
- handler.to_buffer(title)
393
+ # if not use_partial_ctx:
394
+ # handler.to_buffer(title)
391
395
  async for event in result.stream_events():
392
396
  if bridge.stopped():
393
397
  result.cancel()
@@ -445,13 +449,13 @@ class Agent(BaseAgent):
445
449
  "type": "bool",
446
450
  "label": trans("agent.option.tools.local"),
447
451
  "description": trans("agent.option.tools.local.desc"),
448
- "default": False,
452
+ "default": True,
449
453
  },
450
454
  "allow_remote_tools": {
451
455
  "type": "bool",
452
456
  "label": trans("agent.option.tools.remote"),
453
457
  "description": trans("agent.option.tools.remote.desc"),
454
- "default": False,
458
+ "default": True,
455
459
  },
456
460
  }
457
461
  },
@@ -479,13 +483,13 @@ class Agent(BaseAgent):
479
483
  "type": "bool",
480
484
  "label": trans("agent.option.tools.local"),
481
485
  "description": trans("agent.option.tools.local.desc"),
482
- "default": False,
486
+ "default": True,
483
487
  },
484
488
  "allow_remote_tools": {
485
489
  "type": "bool",
486
490
  "label": trans("agent.option.tools.remote"),
487
491
  "description": trans("agent.option.tools.remote.desc"),
488
- "default": False,
492
+ "default": True,
489
493
  },
490
494
  }
491
495
  },