pygpt-net 2.6.59__py3-none-any.whl → 2.6.61__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 (91) hide show
  1. pygpt_net/CHANGELOG.txt +11 -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/chat/common.py +115 -6
  6. pygpt_net/controller/chat/input.py +4 -1
  7. pygpt_net/controller/presets/editor.py +442 -39
  8. pygpt_net/controller/presets/presets.py +121 -6
  9. pygpt_net/controller/settings/editor.py +0 -15
  10. pygpt_net/controller/theme/markdown.py +2 -5
  11. pygpt_net/controller/ui/ui.py +4 -7
  12. pygpt_net/core/agents/custom/__init__.py +281 -0
  13. pygpt_net/core/agents/custom/debug.py +64 -0
  14. pygpt_net/core/agents/custom/factory.py +109 -0
  15. pygpt_net/core/agents/custom/graph.py +71 -0
  16. pygpt_net/core/agents/custom/llama_index/__init__.py +10 -0
  17. pygpt_net/core/agents/custom/llama_index/factory.py +100 -0
  18. pygpt_net/core/agents/custom/llama_index/router_streamer.py +106 -0
  19. pygpt_net/core/agents/custom/llama_index/runner.py +562 -0
  20. pygpt_net/core/agents/custom/llama_index/stream.py +56 -0
  21. pygpt_net/core/agents/custom/llama_index/utils.py +253 -0
  22. pygpt_net/core/agents/custom/logging.py +50 -0
  23. pygpt_net/core/agents/custom/memory.py +51 -0
  24. pygpt_net/core/agents/custom/router.py +155 -0
  25. pygpt_net/core/agents/custom/router_streamer.py +187 -0
  26. pygpt_net/core/agents/custom/runner.py +455 -0
  27. pygpt_net/core/agents/custom/schema.py +127 -0
  28. pygpt_net/core/agents/custom/utils.py +193 -0
  29. pygpt_net/core/agents/provider.py +72 -7
  30. pygpt_net/core/agents/runner.py +7 -4
  31. pygpt_net/core/agents/runners/helpers.py +1 -1
  32. pygpt_net/core/agents/runners/llama_workflow.py +3 -0
  33. pygpt_net/core/agents/runners/openai_workflow.py +8 -1
  34. pygpt_net/core/db/viewer.py +11 -5
  35. pygpt_net/{ui/widget/builder → core/node_editor}/__init__.py +2 -2
  36. pygpt_net/core/{builder → node_editor}/graph.py +28 -226
  37. pygpt_net/core/node_editor/models.py +118 -0
  38. pygpt_net/core/node_editor/types.py +78 -0
  39. pygpt_net/core/node_editor/utils.py +17 -0
  40. pygpt_net/core/presets/presets.py +216 -29
  41. pygpt_net/core/render/markdown/parser.py +0 -2
  42. pygpt_net/core/render/web/renderer.py +10 -8
  43. pygpt_net/data/config/config.json +5 -6
  44. pygpt_net/data/config/models.json +3 -3
  45. pygpt_net/data/config/settings.json +2 -38
  46. pygpt_net/data/locale/locale.de.ini +64 -1
  47. pygpt_net/data/locale/locale.en.ini +63 -4
  48. pygpt_net/data/locale/locale.es.ini +64 -1
  49. pygpt_net/data/locale/locale.fr.ini +64 -1
  50. pygpt_net/data/locale/locale.it.ini +64 -1
  51. pygpt_net/data/locale/locale.pl.ini +65 -2
  52. pygpt_net/data/locale/locale.uk.ini +64 -1
  53. pygpt_net/data/locale/locale.zh.ini +64 -1
  54. pygpt_net/data/locale/plugin.cmd_system.en.ini +62 -66
  55. pygpt_net/item/agent.py +5 -1
  56. pygpt_net/item/preset.py +19 -1
  57. pygpt_net/provider/agents/base.py +33 -2
  58. pygpt_net/provider/agents/llama_index/flow_from_schema.py +92 -0
  59. pygpt_net/provider/agents/openai/flow_from_schema.py +96 -0
  60. pygpt_net/provider/core/agent/json_file.py +11 -5
  61. pygpt_net/provider/core/config/patch.py +10 -1
  62. pygpt_net/provider/core/config/patches/patch_before_2_6_42.py +0 -6
  63. pygpt_net/tools/agent_builder/tool.py +233 -52
  64. pygpt_net/tools/agent_builder/ui/dialogs.py +172 -28
  65. pygpt_net/tools/agent_builder/ui/list.py +37 -10
  66. pygpt_net/ui/__init__.py +2 -4
  67. pygpt_net/ui/dialog/about.py +58 -38
  68. pygpt_net/ui/dialog/db.py +142 -3
  69. pygpt_net/ui/dialog/preset.py +62 -8
  70. pygpt_net/ui/layout/toolbox/presets.py +52 -16
  71. pygpt_net/ui/main.py +1 -1
  72. pygpt_net/ui/widget/dialog/db.py +0 -0
  73. pygpt_net/ui/widget/lists/preset.py +644 -60
  74. pygpt_net/{core/builder → ui/widget/node_editor}/__init__.py +2 -2
  75. pygpt_net/ui/widget/node_editor/command.py +373 -0
  76. pygpt_net/ui/widget/node_editor/config.py +157 -0
  77. pygpt_net/ui/widget/node_editor/editor.py +2070 -0
  78. pygpt_net/ui/widget/node_editor/item.py +493 -0
  79. pygpt_net/ui/widget/node_editor/node.py +1460 -0
  80. pygpt_net/ui/widget/node_editor/utils.py +17 -0
  81. pygpt_net/ui/widget/node_editor/view.py +364 -0
  82. pygpt_net/ui/widget/tabs/output.py +1 -1
  83. pygpt_net/ui/widget/textarea/input.py +2 -2
  84. pygpt_net/utils.py +114 -2
  85. {pygpt_net-2.6.59.dist-info → pygpt_net-2.6.61.dist-info}/METADATA +80 -93
  86. {pygpt_net-2.6.59.dist-info → pygpt_net-2.6.61.dist-info}/RECORD +88 -61
  87. pygpt_net/core/agents/custom.py +0 -150
  88. pygpt_net/ui/widget/builder/editor.py +0 -2001
  89. {pygpt_net-2.6.59.dist-info → pygpt_net-2.6.61.dist-info}/LICENSE +0 -0
  90. {pygpt_net-2.6.59.dist-info → pygpt_net-2.6.61.dist-info}/WHEEL +0 -0
  91. {pygpt_net-2.6.59.dist-info → pygpt_net-2.6.61.dist-info}/entry_points.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pygpt-net
3
- Version: 2.6.59
3
+ Version: 2.6.61
4
4
  Summary: Desktop AI Assistant powered by: OpenAI GPT-5, GPT-4, o1, o3, Gemini, Claude, Grok, DeepSeek, and other models supported by Llama Index, and Ollama. Chatbot, agents, completion, image generation, vision analysis, speech-to-text, plugins, MCP, internet access, file handling, command execution and more.
5
5
  License: MIT
6
6
  Keywords: ai,api,api key,app,assistant,bielik,chat,chatbot,chatgpt,claude,dall-e,deepseek,desktop,gemini,gpt,gpt-3.5,gpt-4,gpt-4-vision,gpt-4o,gpt-5,gpt-oss,gpt3.5,gpt4,grok,langchain,llama-index,llama3,mistral,o1,o3,ollama,openai,presets,py-gpt,py_gpt,pygpt,pyside,qt,text completion,tts,ui,vision,whisper
@@ -117,7 +117,7 @@ Description-Content-Type: text/markdown
117
117
 
118
118
  [![pygpt](https://snapcraft.io/pygpt/badge.svg)](https://snapcraft.io/pygpt)
119
119
 
120
- Release: **2.6.59** | build: **2025-09-23** | Python: **>=3.10, <3.14**
120
+ Release: **2.6.61** | build: **2025-09-26** | Python: **>=3.10, <3.14**
121
121
 
122
122
  > Official website: https://pygpt.net | Documentation: https://pygpt.readthedocs.io
123
123
  >
@@ -180,6 +180,7 @@ You can download compiled 64-bit versions for Windows and Linux here: https://py
180
180
  - Provides an intuitive operation and interface.
181
181
  - Includes a notepad.
182
182
  - Includes simple painter / drawing tool.
183
+ - Includes an node-based Agents Builder.
183
184
  - Supports multiple languages.
184
185
  - Requires no previous knowledge of using AI models.
185
186
  - Simplifies image generation using image models like `DALL-E` and `Imagen`.
@@ -2088,6 +2089,7 @@ PyGPT features several useful tools, including:
2088
2089
  - HTML/JS Canvas (built-in HTML renderer)
2089
2090
  - Translator
2090
2091
  - Web Browser (Chromium)
2092
+ - Agents Builder (beta)
2091
2093
 
2092
2094
  ![v2_tool_menu](https://github.com/szczyglis-dev/py-gpt/raw/master/docs/source/images/v2_tool_menu.png)
2093
2095
 
@@ -2165,6 +2167,71 @@ Enables translation between multiple languages using an AI model.
2165
2167
 
2166
2168
  A built-in web browser based on Chromium, allowing you to open webpages directly within the app. **SECURITY NOTICE:** For your protection, avoid using the built-in browser for sensitive or critical tasks. It is intended for basic use only.
2167
2169
 
2170
+ # Agents Builder (beta)
2171
+
2172
+ To launch the Agent Editor, navigate to:
2173
+
2174
+ `Tools -> Agents Builder`
2175
+
2176
+ ![nodes](https://github.com/szczyglis-dev/py-gpt/raw/master/docs/source/images/nodes.png)
2177
+
2178
+ This tool allows you to create workflows for agents using a node editor, without writing any code. You can add a new agent type, and it will appear in the list of presets.
2179
+
2180
+ To add a new element, right-click on the editor grid and select `Add` to insert a new node.
2181
+
2182
+ **Types of Nodes:**
2183
+
2184
+ - **Flow/Start**: The starting point for agents (user input).
2185
+ - **Flow/Agent**: A single agent with customizable default parameters, such as system instructions and tool usage. These settings can be overridden in the preset.
2186
+ - **Flow/Memory**: Shared memory between agents (shared Context).
2187
+ - **Flow/End**: The endpoint, returning control to the user.
2188
+
2189
+ Agents with connected shared memory share it among themselves. Agents without shared memory only receive the latest output from the previous agent.
2190
+
2191
+ The first agent in the sequence always receives the full context passed by the user.
2192
+
2193
+ Connecting agents and memory is done using node connections via slots. To connect slots, simply drag from the input port to the output port (Ctrl + mouse button removes a connection).
2194
+
2195
+ **Node Editor Navigation:**
2196
+
2197
+ - **Right-click**: Add node, undo, redo, clear
2198
+ - **Middle-click + drag**: Pan view
2199
+ - **Ctrl + Mouse wheel**: Zoom
2200
+ - **Left-click a port**: Create connection
2201
+ - **Ctrl + Left-click a port**: Rewire or detach connection
2202
+ - **Right-click or DELETE a node/connection**: Remove node/connection
2203
+
2204
+ **Tip:** Enable agent debugging in `Settings -> Debug -> Log Agents usage to console` to log the full workflow to the console.
2205
+
2206
+ Agents built using this tool are compatible with both OpenAI Agents and LlamaIndex.
2207
+
2208
+ **Notes:**
2209
+
2210
+ Routing and system instruction: for every agent that has more than one connection leading to the next agent, a routing instruction is automatically injected just before your system prompt:
2211
+
2212
+ ```
2213
+ You are a routing-capable agent in a multi-agent flow.
2214
+ Your id is: <current_id>, name: <agent_name>.
2215
+ You MUST respond ONLY with a single JSON object and nothing else.
2216
+ Schema:
2217
+ {
2218
+ "route": "<ID of the next agent from allowed_routes OR the string 'end'>",
2219
+ "content": "<final response text for the user (or tool result)>"
2220
+ }
2221
+ Rules:
2222
+ - allowed_routes: [<allowed>]
2223
+ - If you want to finish the flow, set route to "end".
2224
+ - content must contain the user-facing answer (you may include structured data as JSON or Markdown inside content).
2225
+ - Do NOT add any commentary outside of the JSON. No leading or trailing text.
2226
+ - If using tools, still return the final JSON with tool results summarized in content.
2227
+ - Human-friendly route names: <names>
2228
+ - Human-friendly route roles (optional): <roles>
2229
+
2230
+ <here begins your system instruction>
2231
+ ```
2232
+
2233
+ **INFO:** Agents Builder is in beta.
2234
+
2168
2235
 
2169
2236
  # Token usage calculation
2170
2237
 
@@ -2389,8 +2456,6 @@ Config -> Settings...
2389
2456
 
2390
2457
  - `Store dialog window positions`: Enable or disable dialogs positions store/restore, Default: True.
2391
2458
 
2392
- - `Use theme colors in chat window`: Use color theme in chat window, Default: True.
2393
-
2394
2459
  **Code syntax**
2395
2460
 
2396
2461
  - `Code syntax highlight`: Syntax highlight theme in code blocks. `WebEngine / Chromium` render mode only.
@@ -2457,8 +2522,6 @@ Config -> Settings...
2457
2522
 
2458
2523
  - `Open URLs in built-in browser`: Enable this option to open all URLs in the built-in browser (Chromium) instead of an external browser. Default: False.
2459
2524
 
2460
- - `Convert lists to paragraphs`: If enabled, lists (ul, ol) will be converted to paragraphs (p), Default: True.
2461
-
2462
2525
  - `Model used for auto-summary`: Model used for context auto-summary (generating titles in context list) (default: *gpt-4o-mini*). **Tip:** If you prefer to use local models, you should change the model here as well
2463
2526
 
2464
2527
  **Remote tools**
@@ -3658,6 +3721,17 @@ may consume additional tokens that are not displayed in the main window.
3658
3721
 
3659
3722
  ## Recent changes:
3660
3723
 
3724
+ **2.6.61 (2025-09-26)**
3725
+
3726
+ - Enhanced the agents node editor, custom agent flow, and instruction following.
3727
+ - Added drag-and-drop and reordering functionality to the presets list.
3728
+ - Added statistics for response tokens, including time elapsed and tokens per second.
3729
+ - Improved UI/UX.
3730
+
3731
+ **2.6.60 (2025-09-25)**
3732
+
3733
+ - Added a new tool: Agents Builder - allowing visual design of agent workflows using nodes - available in Tools -> Agents Builder (beta).
3734
+
3661
3735
  **2.6.59 (2025-09-23)**
3662
3736
 
3663
3737
  - LlamaIndex has been upgraded to v0.13.6.
@@ -3674,93 +3748,6 @@ may consume additional tokens that are not displayed in the main window.
3674
3748
  - Improved: The local web search plugin has been enhanced to retrieve multiple URLs at once.
3675
3749
  - Added: Use proxy switch in Settings.
3676
3750
 
3677
- **2.6.56 (2025-09-22)**
3678
-
3679
- - Optimized: Memory usage and performance in streaming and rendering large contexts.
3680
- - Added: Copy to clipboard functionality in user messages.
3681
- - Added: Manual scroll in plain-text mode.
3682
-
3683
- **2.6.55 (2025-09-18)**
3684
-
3685
- - Fixed: Unnecessary context loading from the database.
3686
- - Optimized: Token count in the input field.
3687
-
3688
- **2.6.54 (2025-09-18)**
3689
-
3690
- - Added: Remote tools (like web search) are now also available in the Chat with Files and Agents (LlamaIndex) modes.
3691
- - Added: Two new plugins: Wolfram Alpha and OpenStreetMap.
3692
- - Fixed: Enabled local file-like schemes in links/images in the markdown-it parser.
3693
-
3694
- **2.6.53 (2025-09-17)**
3695
-
3696
- - Added: An icon to enable/disable the web search remote tool in the icon bar, along with remote web search functionality in OpenRouter (#135).
3697
- - Added: The ability to mute audio in real-time mode via the audio icon.
3698
-
3699
- **2.6.52 (2025-09-17)**
3700
-
3701
- - Added MCP plugin: Provides access to remote tools via the Model Context Protocol (MCP), including stdio, SSE, and Streamable HTTP transports, with per-server allow/deny filtering, Authorization header support, and a tools cache.
3702
- - Fixed: tab tooltips reload on profile switch.
3703
-
3704
- **2.6.51 (2025-09-16)**
3705
-
3706
- - Fix: Automatically reloading calendar notes.
3707
- - Fix: Context menu CSS background color for calendar items.
3708
-
3709
- **2.6.50 (2025-09-16)**
3710
-
3711
- - Optimized: Improved memory cleanup when switching profiles and unloading tabs.
3712
- - Fix: Resolved missing PID data in text output.
3713
- - Fix: Enhanced real-time parsing of execute tags.
3714
-
3715
- **2.6.49 (2025-09-16)**
3716
-
3717
- - Fixed: Occasional crashes when focusing on an output container unloaded from memory in the second column.
3718
-
3719
- **2.6.48 (2025-09-15)**
3720
-
3721
- - Added: auto-loading of next items to the list of contexts when scrolling to the end of the list.
3722
-
3723
- **2.6.47 (2025-09-15)**
3724
-
3725
- - Improved: Parsing of custom markup tags.
3726
- - Optimized: Switching profiles.
3727
-
3728
- **2.6.46 (2025-09-15)**
3729
-
3730
- - Added: Global proxy settings for all API SDKs.
3731
- - Fixed: xAI client configuration in Chat with Files.
3732
- - Fixed: Top margin in streaming container.
3733
- - Refactored: Debug workers.
3734
-
3735
- **2.6.45 (2025-09-13)**
3736
-
3737
- - Improved: Parsing of custom markup in the stream.
3738
- - Improved: Message block parsing moved to JavaScript.
3739
-
3740
- **2.6.44 (2025-09-12)**
3741
-
3742
- - Added: Auto-collapse for large user input blocks.
3743
- - Added: Configuration for syntax highlighting intervals.
3744
- - Improved: Visibility of label icons.
3745
- - Improved: Scrolling of code blocks.
3746
- - Fixed: Parsing of quotes in custom markdown blocks.
3747
-
3748
- **2.6.43 (2025-09-12)**
3749
-
3750
- - Fixed: preset restoration when switching profiles.
3751
- - Improved: faster application launch and exit.
3752
-
3753
- **2.6.42 (2025-09-11)**
3754
-
3755
- - Fixed: Save/load zoom factor in the chat window when switched via Ctrl + mouse wheel.
3756
- - Fixed: Break the first line in code blocks.
3757
- - Added: Configuration options for syntax highlight limits.
3758
- - Updated: SVG icons.
3759
-
3760
- **2.6.41 (2025-09-11)**
3761
-
3762
- - Rendering engine optimizations: markdown parsing moved to JS, reduced CPU usage, added auto-memory clearing, and more.
3763
-
3764
3751
  # Credits and links
3765
3752
 
3766
3753
  **Official website:** <https://pygpt.net>