pygpt-net 2.6.59__py3-none-any.whl → 2.6.60__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 (61) hide show
  1. pygpt_net/CHANGELOG.txt +4 -0
  2. pygpt_net/__init__.py +3 -3
  3. pygpt_net/app.py +9 -5
  4. pygpt_net/controller/__init__.py +1 -0
  5. pygpt_net/controller/presets/editor.py +442 -39
  6. pygpt_net/core/agents/custom/__init__.py +275 -0
  7. pygpt_net/core/agents/custom/debug.py +64 -0
  8. pygpt_net/core/agents/custom/factory.py +109 -0
  9. pygpt_net/core/agents/custom/graph.py +71 -0
  10. pygpt_net/core/agents/custom/llama_index/__init__.py +10 -0
  11. pygpt_net/core/agents/custom/llama_index/factory.py +89 -0
  12. pygpt_net/core/agents/custom/llama_index/router_streamer.py +106 -0
  13. pygpt_net/core/agents/custom/llama_index/runner.py +529 -0
  14. pygpt_net/core/agents/custom/llama_index/stream.py +56 -0
  15. pygpt_net/core/agents/custom/llama_index/utils.py +242 -0
  16. pygpt_net/core/agents/custom/logging.py +50 -0
  17. pygpt_net/core/agents/custom/memory.py +51 -0
  18. pygpt_net/core/agents/custom/router.py +116 -0
  19. pygpt_net/core/agents/custom/router_streamer.py +187 -0
  20. pygpt_net/core/agents/custom/runner.py +454 -0
  21. pygpt_net/core/agents/custom/schema.py +125 -0
  22. pygpt_net/core/agents/custom/utils.py +181 -0
  23. pygpt_net/core/agents/provider.py +72 -7
  24. pygpt_net/core/agents/runner.py +7 -4
  25. pygpt_net/core/agents/runners/helpers.py +1 -1
  26. pygpt_net/core/agents/runners/llama_workflow.py +3 -0
  27. pygpt_net/core/agents/runners/openai_workflow.py +8 -1
  28. pygpt_net/{ui/widget/builder → core/node_editor}/__init__.py +2 -2
  29. pygpt_net/core/{builder → node_editor}/graph.py +11 -218
  30. pygpt_net/core/node_editor/models.py +111 -0
  31. pygpt_net/core/node_editor/types.py +76 -0
  32. pygpt_net/core/node_editor/utils.py +17 -0
  33. pygpt_net/core/render/web/renderer.py +10 -8
  34. pygpt_net/data/config/config.json +3 -3
  35. pygpt_net/data/config/models.json +3 -3
  36. pygpt_net/data/locale/locale.en.ini +4 -4
  37. pygpt_net/item/agent.py +5 -1
  38. pygpt_net/item/preset.py +19 -1
  39. pygpt_net/provider/agents/base.py +33 -2
  40. pygpt_net/provider/agents/llama_index/flow_from_schema.py +92 -0
  41. pygpt_net/provider/agents/openai/flow_from_schema.py +96 -0
  42. pygpt_net/provider/core/agent/json_file.py +11 -5
  43. pygpt_net/tools/agent_builder/tool.py +217 -52
  44. pygpt_net/tools/agent_builder/ui/dialogs.py +119 -24
  45. pygpt_net/tools/agent_builder/ui/list.py +37 -10
  46. pygpt_net/ui/dialog/preset.py +16 -1
  47. pygpt_net/ui/main.py +1 -1
  48. pygpt_net/{core/builder → ui/widget/node_editor}/__init__.py +2 -2
  49. pygpt_net/ui/widget/node_editor/command.py +373 -0
  50. pygpt_net/ui/widget/node_editor/editor.py +2038 -0
  51. pygpt_net/ui/widget/node_editor/item.py +492 -0
  52. pygpt_net/ui/widget/node_editor/node.py +1205 -0
  53. pygpt_net/ui/widget/node_editor/utils.py +17 -0
  54. pygpt_net/ui/widget/node_editor/view.py +247 -0
  55. {pygpt_net-2.6.59.dist-info → pygpt_net-2.6.60.dist-info}/METADATA +72 -2
  56. {pygpt_net-2.6.59.dist-info → pygpt_net-2.6.60.dist-info}/RECORD +59 -33
  57. pygpt_net/core/agents/custom.py +0 -150
  58. pygpt_net/ui/widget/builder/editor.py +0 -2001
  59. {pygpt_net-2.6.59.dist-info → pygpt_net-2.6.60.dist-info}/LICENSE +0 -0
  60. {pygpt_net-2.6.59.dist-info → pygpt_net-2.6.60.dist-info}/WHEEL +0 -0
  61. {pygpt_net-2.6.59.dist-info → pygpt_net-2.6.60.dist-info}/entry_points.txt +0 -0
pygpt_net/CHANGELOG.txt CHANGED
@@ -1,3 +1,7 @@
1
+ 2.6.60 (2025-09-25)
2
+
3
+ - Added a new tool: Agents Builder - allowing visual design of agent workflows using nodes - available in Tools -> Agents Builder (beta).
4
+
1
5
  2.6.59 (2025-09-23)
2
6
 
3
7
  - LlamaIndex has been upgraded to v0.13.6.
pygpt_net/__init__.py CHANGED
@@ -6,15 +6,15 @@
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.09.23 00:00:00 #
9
+ # Updated Date: 2025.09.25 00:00:00 #
10
10
  # ================================================== #
11
11
 
12
12
  __author__ = "Marcin Szczygliński"
13
13
  __copyright__ = "Copyright 2025, Marcin Szczygliński"
14
14
  __credits__ = ["Marcin Szczygliński"]
15
15
  __license__ = "MIT"
16
- __version__ = "2.6.59"
17
- __build__ = "2025-09-23"
16
+ __version__ = "2.6.60"
17
+ __build__ = "2025-09-25"
18
18
  __maintainer__ = "Marcin Szczygliński"
19
19
  __github__ = "https://github.com/szczyglis-dev/py-gpt"
20
20
  __report__ = "https://github.com/szczyglis-dev/py-gpt/issues"
pygpt_net/app.py CHANGED
@@ -103,15 +103,15 @@ from pygpt_net.plugin.wolfram import Plugin as WolframPlugin
103
103
  from pygpt_net.plugin.osm import Plugin as OSMPlugin
104
104
 
105
105
  # agents (Llama-index)
106
- # from pygpt_net.provider.agents.llama_index.legacy.openai import OpenAIAgent
107
106
  from pygpt_net.provider.agents.llama_index.legacy.openai_assistant import OpenAIAssistantAgent
108
- # from pygpt_net.provider.agents.llama_index.legacy.planner import PlannerAgent
109
107
  from pygpt_net.provider.agents.llama_index.planner_workflow import PlannerAgent as PlannerWorkflowAgent
110
108
  from pygpt_net.provider.agents.llama_index.openai_workflow import OpenAIAgent as OpenAIWorkflowAgent
111
- # from pygpt_net.provider.agents.llama_index.legacy.react import ReactAgent
112
109
  from pygpt_net.provider.agents.llama_index.react_workflow import ReactWorkflowAgent
113
110
  from pygpt_net.provider.agents.llama_index.codeact_workflow import CodeActAgent
114
111
  from pygpt_net.provider.agents.llama_index.supervisor_workflow import SupervisorAgent as LlamaSupervisorAgent
112
+ from pygpt_net.provider.agents.llama_index.flow_from_schema import Agent as LlamaCustomAgent # builder schema
113
+
114
+ # agents (OpenAI-Agents)
115
115
  from pygpt_net.provider.agents.openai.agent import Agent as OpenAIAgentsBase
116
116
  from pygpt_net.provider.agents.openai.agent_with_experts import Agent as OpenAIAgentsExperts
117
117
  from pygpt_net.provider.agents.openai.agent_with_experts_feedback import Agent as OpenAIAgentsExpertsFeedback
@@ -121,6 +121,8 @@ from pygpt_net.provider.agents.openai.agent_planner import Agent as OpenAIAgentP
121
121
  from pygpt_net.provider.agents.openai.evolve import Agent as OpenAIAgentsEvolve
122
122
  from pygpt_net.provider.agents.openai.agent_b2b import Agent as OpenAIAgentsB2B
123
123
  from pygpt_net.provider.agents.openai.supervisor import Agent as OpenAIAgentSupervisor
124
+ from pygpt_net.provider.agents.openai.flow_from_schema import Agent as OpenAICustomAgent # builder schema
125
+
124
126
 
125
127
  # LLM wrapper providers (langchain, llama-index, embeddings)
126
128
  from pygpt_net.provider.llms.anthropic import AnthropicLLM
@@ -204,7 +206,7 @@ from pygpt_net.tools.text_editor import TextEditor as TextEditorTool
204
206
  from pygpt_net.tools.html_canvas import HtmlCanvas as HtmlCanvasTool
205
207
  from pygpt_net.tools.translator import Translator as TranslatorTool
206
208
  from pygpt_net.tools.web_browser import WebBrowser as WebBrowserTool
207
- # from pygpt_net.tools.agent_builder import AgentBuilder as AgentBuilderTool
209
+ from pygpt_net.tools.agent_builder import AgentBuilder as AgentBuilderTool
208
210
 
209
211
  def run(**kwargs):
210
212
  """
@@ -490,6 +492,7 @@ def run(**kwargs):
490
492
  launcher.add_agent(ReactWorkflowAgent()) # llama-index
491
493
  launcher.add_agent(CodeActAgent()) # llama-index
492
494
  launcher.add_agent(LlamaSupervisorAgent()) # llama-index
495
+ launcher.add_agent(LlamaCustomAgent()) # llama-index
493
496
  launcher.add_agent(OpenAIAgentsBase()) # openai-agents
494
497
  launcher.add_agent(OpenAIAgentsExperts()) # openai-agents
495
498
  launcher.add_agent(OpenAIAgentFeedback()) # openai-agents
@@ -499,6 +502,7 @@ def run(**kwargs):
499
502
  launcher.add_agent(OpenAIAgentsEvolve()) # openai-agents
500
503
  launcher.add_agent(OpenAIAgentsB2B()) # openai-agents
501
504
  launcher.add_agent(OpenAIAgentSupervisor()) # openai-agents
505
+ launcher.add_agent(OpenAICustomAgent()) # openai-agents
502
506
 
503
507
  # register custom agents
504
508
  agents = kwargs.get('agents', None)
@@ -516,7 +520,7 @@ def run(**kwargs):
516
520
  launcher.add_tool(HtmlCanvasTool())
517
521
  launcher.add_tool(TranslatorTool())
518
522
  launcher.add_tool(WebBrowserTool())
519
- # launcher.add_tool(AgentBuilderTool())
523
+ launcher.add_tool(AgentBuilderTool())
520
524
 
521
525
  # register custom tools
522
526
  tools = kwargs.get('tools', None)
@@ -165,6 +165,7 @@ class Controller:
165
165
  self.settings.reload()
166
166
  self.assistant.reload()
167
167
  self.attachment.reload()
168
+ self.window.core.agents.custom.reload()
168
169
  self.presets.reload()
169
170
  self.idx.reload()
170
171
  self.agent.reload()