quantalogic 0.2.6__py3-none-any.whl → 0.2.8__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.
- quantalogic/main.py +2 -1
- quantalogic/prompts.py +4 -3
- quantalogic/version.py +1 -1
- {quantalogic-0.2.6.dist-info → quantalogic-0.2.8.dist-info}/METADATA +38 -59
- {quantalogic-0.2.6.dist-info → quantalogic-0.2.8.dist-info}/RECORD +8 -8
- {quantalogic-0.2.6.dist-info → quantalogic-0.2.8.dist-info}/LICENSE +0 -0
- {quantalogic-0.2.6.dist-info → quantalogic-0.2.8.dist-info}/WHEEL +0 -0
- {quantalogic-0.2.6.dist-info → quantalogic-0.2.8.dist-info}/entry_points.txt +0 -0
quantalogic/main.py
CHANGED
@@ -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,
|
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)
|
quantalogic/prompts.py
CHANGED
@@ -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
|
-
*
|
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
|
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:
|
quantalogic/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: quantalogic
|
3
|
-
Version: 0.2.
|
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
|
-
|
124
|
-
--
|
125
|
-
--
|
126
|
-
|
127
|
-
--
|
128
|
-
--
|
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
|
-
|
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
|
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
|
-
###
|
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
|
-
|
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
|
-
|
215
|
+
Here is the markdown table based on the provided directory listing:
|
235
216
|
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
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
|
+
[](https://star-history.com/#quantalogic/quantalogic&Date)
|
1012
|
+
|
1013
|
+
Initiated with ❤️ by Raphaël MANSUY. Founder of [Quantalogic](https://www.quantalogic.app).
|
1014
|
+
|
@@ -5,11 +5,11 @@ quantalogic/coding_agent.py,sha256=ivHBn3hIDEt9V1LDXI4l-COeGXYVp_v_rrx9ng8sP2A,3
|
|
5
5
|
quantalogic/event_emitter.py,sha256=jqot2g4JRXc88K6PW837Oqxbf7shZfO-xdPaUWmzupk,7901
|
6
6
|
quantalogic/generative_model.py,sha256=JkZz7YBd-v9n5EURidKUddkCLNvNZaqMzo5PgE_ugmc,8398
|
7
7
|
quantalogic/interactive_text_editor.py,sha256=kYeTA2qej5kxtPvAUHy_Dr2MhrGQAyenLFpW9mU9Rmw,6855
|
8
|
-
quantalogic/main.py,sha256=
|
8
|
+
quantalogic/main.py,sha256=_oLhXNTDSH7Zfc1__jPgOvqZGpYH5VSjamdLwZ4xqDM,8698
|
9
9
|
quantalogic/memory.py,sha256=zbtRuM05jaS2lJll-92dt5JfYVLERnF_m_9xqp2x-k0,6304
|
10
10
|
quantalogic/model_names.py,sha256=UZlz25zG9B2dpfwdw_e1Gw5qFsKQ7iME9FJh9Ts4u6s,938
|
11
11
|
quantalogic/print_event.py,sha256=-4qZmFI2BTkXuGE9DoKm6Vs-GzK1F9WJGt9GqpRQlQQ,2175
|
12
|
-
quantalogic/prompts.py,sha256=
|
12
|
+
quantalogic/prompts.py,sha256=GWVWnwFBxcVtOPvm1rUr1VnWY0OVqaBwVU_pMNunH2k,3609
|
13
13
|
quantalogic/server/__init__.py,sha256=8sz_PYAUCrkM6JM5EAUeIzNM4NPW6j6UT72JVkc21WQ,91
|
14
14
|
quantalogic/server/agent_server.py,sha256=GmglYf-LeVQQOdikMFDvPq1R0wKt6wIBpufW8XzP-iE,22489
|
15
15
|
quantalogic/server/models.py,sha256=nVUGWElOsUw8QnRCGJylk25wCew_5gohe6nldYighUA,1322
|
@@ -59,11 +59,11 @@ quantalogic/utils/get_quantalogic_rules_content.py,sha256=fnEFTyClXzpI0MLaM-gB9R
|
|
59
59
|
quantalogic/utils/git_ls.py,sha256=_aXg2TwqYv9CoOrhQ1gqHCqu1j8wOVigQNWbGncSDlM,4361
|
60
60
|
quantalogic/utils/read_file.py,sha256=tSRVHk8dIP4nNLL89v5kRki4hOTjVyjbmuEb2zwvwCY,2077
|
61
61
|
quantalogic/utils/read_http_text_content.py,sha256=1nRLQ9DHP_fKrm0rIEJBF0ROmB78e4lct2hUzD2PAUk,4408
|
62
|
-
quantalogic/version.py,sha256=
|
62
|
+
quantalogic/version.py,sha256=En2YsrG-VTf0ISc2bW9hm7HFnvQTMuxJpfpAaapjJDI,64
|
63
63
|
quantalogic/xml_parser.py,sha256=cTRorr5sVfkIzH72M0C-GQ9ROGPiz2FTT66U9ndjzhE,9538
|
64
64
|
quantalogic/xml_tool_parser.py,sha256=lsVzClZBrZan7wjCuCKnGHWzksXI3VMy_vWthxu2_bo,3738
|
65
|
-
quantalogic-0.2.
|
66
|
-
quantalogic-0.2.
|
67
|
-
quantalogic-0.2.
|
68
|
-
quantalogic-0.2.
|
69
|
-
quantalogic-0.2.
|
65
|
+
quantalogic-0.2.8.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
66
|
+
quantalogic-0.2.8.dist-info/METADATA,sha256=XISo9oYxS-YXKmE7Prszx8Y_b4Oc36FYNXKAzhILsE8,39180
|
67
|
+
quantalogic-0.2.8.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
68
|
+
quantalogic-0.2.8.dist-info/entry_points.txt,sha256=wgSq5SRU98yvlRHGEZD1Xn7sS5CSjH2RfUtTa6Qy28Q,52
|
69
|
+
quantalogic-0.2.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|