quantalogic 0.2.6__tar.gz → 0.2.8__tar.gz

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 (68) hide show
  1. {quantalogic-0.2.6 → quantalogic-0.2.8}/PKG-INFO +38 -59
  2. {quantalogic-0.2.6 → quantalogic-0.2.8}/README.md +37 -58
  3. {quantalogic-0.2.6 → quantalogic-0.2.8}/pyproject.toml +1 -1
  4. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/main.py +2 -1
  5. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/prompts.py +4 -3
  6. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/version.py +1 -1
  7. {quantalogic-0.2.6 → quantalogic-0.2.8}/LICENSE +0 -0
  8. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/__init__.py +0 -0
  9. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/agent.py +0 -0
  10. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/agent_config.py +0 -0
  11. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/coding_agent.py +0 -0
  12. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/event_emitter.py +0 -0
  13. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/generative_model.py +0 -0
  14. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/interactive_text_editor.py +0 -0
  15. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/memory.py +0 -0
  16. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/model_names.py +0 -0
  17. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/print_event.py +0 -0
  18. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/server/__init__.py +0 -0
  19. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/server/agent_server.py +0 -0
  20. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/server/models.py +0 -0
  21. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/server/routes.py +0 -0
  22. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/server/state.py +0 -0
  23. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/server/static/js/event_visualizer.js +0 -0
  24. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/server/static/js/quantalogic.js +0 -0
  25. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/server/templates/index.html +0 -0
  26. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tool_manager.py +0 -0
  27. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/__init__.py +0 -0
  28. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/agent_tool.py +0 -0
  29. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/download_http_file_tool.py +0 -0
  30. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/edit_whole_content_tool.py +0 -0
  31. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/elixir_tool.py +0 -0
  32. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/execute_bash_command_tool.py +0 -0
  33. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/input_question_tool.py +0 -0
  34. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/language_handlers/__init__.py +0 -0
  35. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/language_handlers/c_handler.py +0 -0
  36. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/language_handlers/cpp_handler.py +0 -0
  37. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/language_handlers/go_handler.py +0 -0
  38. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/language_handlers/java_handler.py +0 -0
  39. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/language_handlers/javascript_handler.py +0 -0
  40. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/language_handlers/python_handler.py +0 -0
  41. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/language_handlers/rust_handler.py +0 -0
  42. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/language_handlers/scala_handler.py +0 -0
  43. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/language_handlers/typescript_handler.py +0 -0
  44. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/list_directory_tool.py +0 -0
  45. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/llm_tool.py +0 -0
  46. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/markitdown_tool.py +0 -0
  47. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/nodejs_tool.py +0 -0
  48. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/python_tool.py +0 -0
  49. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/read_file_block_tool.py +0 -0
  50. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/read_file_tool.py +0 -0
  51. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/replace_in_file_tool.py +0 -0
  52. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/ripgrep_tool.py +0 -0
  53. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/search_definition_names.py +0 -0
  54. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/task_complete_tool.py +0 -0
  55. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/tool.py +0 -0
  56. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/unified_diff_tool.py +0 -0
  57. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/tools/write_file_tool.py +0 -0
  58. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/utils/__init__.py +0 -0
  59. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/utils/ask_user_validation.py +0 -0
  60. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/utils/download_http_file.py +0 -0
  61. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/utils/get_coding_environment.py +0 -0
  62. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/utils/get_environment.py +0 -0
  63. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/utils/get_quantalogic_rules_content.py +0 -0
  64. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/utils/git_ls.py +0 -0
  65. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/utils/read_file.py +0 -0
  66. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/utils/read_http_text_content.py +0 -0
  67. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/xml_parser.py +0 -0
  68. {quantalogic-0.2.6 → quantalogic-0.2.8}/quantalogic/xml_tool_parser.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quantalogic
3
- Version: 0.2.6
3
+ Version: 0.2.8
4
4
  Summary: QuantaLogic ReAct Agents
5
5
  Author: Raphaël MANSUY
6
6
  Author-email: raphael.mansuy@gmail.com
@@ -117,15 +117,23 @@ pipx install quantalogic
117
117
  The QuantaLogic CLI provides powerful command-line capabilities:
118
118
 
119
119
  ```bash
120
- quantalogic [OPTIONS] COMMAND [ARGS]...
121
- ```
120
+ Usage: quantalogic [OPTIONS] COMMAND [ARGS]...
121
+
122
+ QuantaLogic AI Assistant - A powerful AI tool for various tasks.
122
123
 
123
- ### Options
124
- --model-name TEXT Model to use (default: deepseek/deepseek-chat)
125
- --verbose Enable verbose output
126
- --mode TEXT Agent mode (code/basic/interpreter/full/code-basic)
127
- --file PATH Path to task file
128
- --version Show version and exit
124
+ Options:
125
+ --version Show version information.
126
+ --model-name TEXT Specify the model to use (litellm format,
127
+ e.g. "openrouter/deepseek-chat").
128
+ --log [info|debug|warning] Set logging level (info/debug/warning).
129
+ --verbose Enable verbose output.
130
+ --mode [code|basic|interpreter|full|code-basic]
131
+ Agent mode (code/search/full).
132
+ --help Show this message and exit.
133
+
134
+ Commands:
135
+ task Execute a task with the QuantaLogic AI Assistant.
136
+ ```
129
137
 
130
138
  ### Commands
131
139
  task Execute a task with the QuantaLogic AI Assistant
@@ -140,33 +148,25 @@ task Execute a task with the QuantaLogic AI Assistant
140
148
  - code-basic: Coding agent with basic reasoning
141
149
 
142
150
  #### Task Execution
151
+
143
152
  Tasks can be provided:
144
- 1. Directly via --task parameter
153
+
154
+ 1. Directly via `task` parameter
145
155
  2. Through a file using --file parameter
146
156
  3. Interactively via standard input
147
157
 
148
- #### Error Handling
149
- The CLI provides comprehensive error handling:
150
- - File not found errors
151
- - Permission errors
152
- - Model configuration errors
153
- - Task validation errors
154
158
 
155
159
  #### Examples
156
160
 
157
- Basic task execution:
158
- ```bash
159
- quantalogic --task "Write a Python function to calculate Fibonacci numbers"
160
- ```
161
161
 
162
162
  Using a task file:
163
163
  ```bash
164
- quantalogic --file tasks/example.md --verbose
164
+ quantalogic task --file tasks/example.md --verbose
165
165
  ```
166
166
 
167
167
  Selecting agent mode:
168
168
  ```bash
169
- quantalogic --mode interpreter --task "Explain quantum computing"
169
+ quantalogic --mode interpreter task "Explain quantum computing"
170
170
  ```
171
171
 
172
172
  Interactive mode:
@@ -174,22 +174,7 @@ Interactive mode:
174
174
  quantalogic
175
175
  ```
176
176
 
177
- ### Examples
178
-
179
- Basic task execution:
180
- ```bash
181
- quantalogic --task "Write a Python function to calculate Fibonacci numbers"
182
- ```
183
-
184
- Using a task file:
185
- ```bash
186
- quantalogic --file tasks/example.md --verbose
187
- ```
188
-
189
- Selecting agent mode:
190
- ```bash
191
- quantalogic --mode interpreter --task "Explain quantum computing"
192
- ```
177
+ ### Using QuantaLogic With code
193
178
 
194
179
  ```python
195
180
  from quantalogic import Agent
@@ -223,31 +208,20 @@ result = agent.solve_task("Create a Python function that calculates the Fibonacc
223
208
  print(result)
224
209
  ```
225
210
 
226
- ### Command Line Interface
227
-
228
- ```bash
229
- # Simple task execution
230
- quantalogic --task "Write a FastAPI endpoint that handles file uploads"
231
- ```
211
+ ## 📖 Examples
232
212
 
213
+ Here are some practical examples to help you get started:
233
214
 
234
- `instruction.md`
215
+ Here is the markdown table based on the provided directory listing:
235
216
 
236
- ```md
237
- Write a poem
238
- Translate the poem in English
239
- Choose 2 French Authors
240
- And then rewrite the translation with the style of each author
241
- ```
217
+ | Example | Description | File |
218
+ |---------|-------------|------|
219
+ | Simple Agent | A basic example of an agent implementation. | [examples/01-simple-agent.py](examples/01-simple-agent.py) |
220
+ | Agent with Event Monitoring | An example of an agent with event monitoring capabilities. | [examples/02-agent-with-event-monitoring.py](examples/02-agent-with-event-monitoring.py) |
221
+ | Agent with Interpreter | An example of an agent that includes an interpreter. | [examples/03-agent-with-interpreter.py](examples/03-agent-with-interpreter.py) |
222
+ | Agent Summary Task | An example of an agent performing a summary task. | [examples/04-agent-summary-task.py](examples/04-agent-summary-task.py) |
223
+ | Code Example | A general code example. | [examples/05-code.py](examples/05-code.py) |
242
224
 
243
- `
244
- ```bash
245
- # Advanced usage with options
246
- quantalogic \
247
- --model openrouter/deepseek-chat \
248
- --execute-file instruction.md \
249
- --verbose
250
- ```
251
225
 
252
226
  ## 🔨 Key Components
253
227
 
@@ -1033,3 +1007,8 @@ Copyright 2024 QuantaLogic Contributors
1033
1007
 
1034
1008
  Licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for details.
1035
1009
 
1010
+ ## Project Growth
1011
+ [![Star History Chart](https://api.star-history.com/svg?repos=quantalogic/quantalogic&type=Date)](https://star-history.com/#quantalogic/quantalogic&Date)
1012
+
1013
+ Initiated with ❤️ by Raphaël MANSUY. Founder of [Quantalogic](https://www.quantalogic.app).
1014
+
@@ -80,15 +80,23 @@ pipx install quantalogic
80
80
  The QuantaLogic CLI provides powerful command-line capabilities:
81
81
 
82
82
  ```bash
83
- quantalogic [OPTIONS] COMMAND [ARGS]...
84
- ```
83
+ Usage: quantalogic [OPTIONS] COMMAND [ARGS]...
84
+
85
+ QuantaLogic AI Assistant - A powerful AI tool for various tasks.
85
86
 
86
- ### Options
87
- --model-name TEXT Model to use (default: deepseek/deepseek-chat)
88
- --verbose Enable verbose output
89
- --mode TEXT Agent mode (code/basic/interpreter/full/code-basic)
90
- --file PATH Path to task file
91
- --version Show version and exit
87
+ Options:
88
+ --version Show version information.
89
+ --model-name TEXT Specify the model to use (litellm format,
90
+ e.g. "openrouter/deepseek-chat").
91
+ --log [info|debug|warning] Set logging level (info/debug/warning).
92
+ --verbose Enable verbose output.
93
+ --mode [code|basic|interpreter|full|code-basic]
94
+ Agent mode (code/search/full).
95
+ --help Show this message and exit.
96
+
97
+ Commands:
98
+ task Execute a task with the QuantaLogic AI Assistant.
99
+ ```
92
100
 
93
101
  ### Commands
94
102
  task Execute a task with the QuantaLogic AI Assistant
@@ -103,33 +111,25 @@ task Execute a task with the QuantaLogic AI Assistant
103
111
  - code-basic: Coding agent with basic reasoning
104
112
 
105
113
  #### Task Execution
114
+
106
115
  Tasks can be provided:
107
- 1. Directly via --task parameter
116
+
117
+ 1. Directly via `task` parameter
108
118
  2. Through a file using --file parameter
109
119
  3. Interactively via standard input
110
120
 
111
- #### Error Handling
112
- The CLI provides comprehensive error handling:
113
- - File not found errors
114
- - Permission errors
115
- - Model configuration errors
116
- - Task validation errors
117
121
 
118
122
  #### Examples
119
123
 
120
- Basic task execution:
121
- ```bash
122
- quantalogic --task "Write a Python function to calculate Fibonacci numbers"
123
- ```
124
124
 
125
125
  Using a task file:
126
126
  ```bash
127
- quantalogic --file tasks/example.md --verbose
127
+ quantalogic task --file tasks/example.md --verbose
128
128
  ```
129
129
 
130
130
  Selecting agent mode:
131
131
  ```bash
132
- quantalogic --mode interpreter --task "Explain quantum computing"
132
+ quantalogic --mode interpreter task "Explain quantum computing"
133
133
  ```
134
134
 
135
135
  Interactive mode:
@@ -137,22 +137,7 @@ Interactive mode:
137
137
  quantalogic
138
138
  ```
139
139
 
140
- ### Examples
141
-
142
- Basic task execution:
143
- ```bash
144
- quantalogic --task "Write a Python function to calculate Fibonacci numbers"
145
- ```
146
-
147
- Using a task file:
148
- ```bash
149
- quantalogic --file tasks/example.md --verbose
150
- ```
151
-
152
- Selecting agent mode:
153
- ```bash
154
- quantalogic --mode interpreter --task "Explain quantum computing"
155
- ```
140
+ ### Using QuantaLogic With code
156
141
 
157
142
  ```python
158
143
  from quantalogic import Agent
@@ -186,31 +171,20 @@ result = agent.solve_task("Create a Python function that calculates the Fibonacc
186
171
  print(result)
187
172
  ```
188
173
 
189
- ### Command Line Interface
190
-
191
- ```bash
192
- # Simple task execution
193
- quantalogic --task "Write a FastAPI endpoint that handles file uploads"
194
- ```
174
+ ## 📖 Examples
195
175
 
176
+ Here are some practical examples to help you get started:
196
177
 
197
- `instruction.md`
178
+ Here is the markdown table based on the provided directory listing:
198
179
 
199
- ```md
200
- Write a poem
201
- Translate the poem in English
202
- Choose 2 French Authors
203
- And then rewrite the translation with the style of each author
204
- ```
180
+ | Example | Description | File |
181
+ |---------|-------------|------|
182
+ | Simple Agent | A basic example of an agent implementation. | [examples/01-simple-agent.py](examples/01-simple-agent.py) |
183
+ | Agent with Event Monitoring | An example of an agent with event monitoring capabilities. | [examples/02-agent-with-event-monitoring.py](examples/02-agent-with-event-monitoring.py) |
184
+ | Agent with Interpreter | An example of an agent that includes an interpreter. | [examples/03-agent-with-interpreter.py](examples/03-agent-with-interpreter.py) |
185
+ | Agent Summary Task | An example of an agent performing a summary task. | [examples/04-agent-summary-task.py](examples/04-agent-summary-task.py) |
186
+ | Code Example | A general code example. | [examples/05-code.py](examples/05-code.py) |
205
187
 
206
- `
207
- ```bash
208
- # Advanced usage with options
209
- quantalogic \
210
- --model openrouter/deepseek-chat \
211
- --execute-file instruction.md \
212
- --verbose
213
- ```
214
188
 
215
189
  ## 🔨 Key Components
216
190
 
@@ -995,3 +969,8 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines.
995
969
  Copyright 2024 QuantaLogic Contributors
996
970
 
997
971
  Licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for details.
972
+
973
+ ## Project Growth
974
+ [![Star History Chart](https://api.star-history.com/svg?repos=quantalogic/quantalogic&type=Date)](https://star-history.com/#quantalogic/quantalogic&Date)
975
+
976
+ Initiated with ❤️ by Raphaël MANSUY. Founder of [Quantalogic](https://www.quantalogic.app).
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "quantalogic"
3
- version = "0.2.6"
3
+ version = "0.2.8"
4
4
  description = "QuantaLogic ReAct Agents"
5
5
  authors = ["Raphaël MANSUY <raphael.mansuy@gmail.com>"]
6
6
  readme = "README.md"
@@ -141,8 +141,9 @@ def cli(ctx: click.Context, version: bool, model_name: str, verbose: bool, mode:
141
141
  )
142
142
  @click.option("--verbose", is_flag=True, help="Enable verbose output.")
143
143
  @click.option("--mode", type=click.Choice(AGENT_MODES), default="code", help="Agent mode (code/search/full).")
144
+ @click.option("--log", type=click.Choice(["info", "debug", "warning"]), default="info", help="Set logging level (info/debug/warning).")
144
145
  @click.argument("task", required=False)
145
- def task(file: Optional[str], model_name: str, verbose: bool, mode: str, task: Optional[str], log: str) -> None:
146
+ def task(file: Optional[str], model_name: str, verbose: bool, mode: str, log: str, task: Optional[str]) -> None:
146
147
  """Execute a task with the QuantaLogic AI Assistant."""
147
148
  console = Console()
148
149
  switch_verbose(verbose, log)
@@ -14,17 +14,18 @@ Tasks will be presented within XML tags:
14
14
  ### Response Protocol
15
15
  Every response must contain exactly two XML blocks:
16
16
 
17
- Be very concise and precise in the <thinking> block
17
+ Be very concise and very precise in the <thinking> block
18
18
 
19
19
  1. Analysis Block:
20
20
  ```xml
21
21
  <thinking>
22
22
  <task_analysis_if_no_history>
23
23
  Only if no conversation history:
24
- * Restate the main objective of the <task> and its context
24
+ * Rewrite the <task> and its context with your own words in detailed, clear, and specific manner.
25
25
  * If not previously defined, clarify detailed criteria for task completion.
26
26
  * Identify key components, constraints, and potential challenges.
27
- * Break down complex tasks into concrete sub-tasks.
27
+ * Decompose into Sub-Tasks: Break the <task> down into smaller, manageable sub-tasks if necessary.
28
+ * Each sub-task should have a clear objective, specific deliverables, and be sequenced logically to facilitate step-by-step progress tracking.
28
29
  </task_analysis_if_no_history>
29
30
  <success_criteria_if_no_history>
30
31
  If no conversation history:
@@ -1,4 +1,4 @@
1
1
 
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.8"
3
3
  def get_version() -> str:
4
4
  return VERSION
File without changes