quantalogic 0.2.0__py3-none-any.whl → 0.2.2__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/agent_config.py +0 -2
- quantalogic/main.py +5 -12
- quantalogic/version.py +4 -0
- {quantalogic-0.2.0.dist-info → quantalogic-0.2.2.dist-info}/METADATA +2 -1
- {quantalogic-0.2.0.dist-info → quantalogic-0.2.2.dist-info}/RECORD +8 -7
- {quantalogic-0.2.0.dist-info → quantalogic-0.2.2.dist-info}/LICENSE +0 -0
- {quantalogic-0.2.0.dist-info → quantalogic-0.2.2.dist-info}/WHEEL +0 -0
- {quantalogic-0.2.0.dist-info → quantalogic-0.2.2.dist-info}/entry_points.txt +0 -0
quantalogic/agent_config.py
CHANGED
quantalogic/main.py
CHANGED
@@ -23,6 +23,7 @@ from quantalogic.agent_config import (
|
|
23
23
|
)
|
24
24
|
from quantalogic.interactive_text_editor import get_multiline_input
|
25
25
|
from quantalogic.print_event import console_print_events
|
26
|
+
from quantalogic.version import get_version
|
26
27
|
|
27
28
|
AGENT_MODES = ["code", "basic", "interpreter", "full", "code-basic"]
|
28
29
|
|
@@ -44,7 +45,9 @@ def create_agent_for_mode(mode: str, model_name: str) -> Agent:
|
|
44
45
|
|
45
46
|
|
46
47
|
def switch_verbose(verbose_mode: bool) -> None:
|
47
|
-
|
48
|
+
import litellm
|
49
|
+
|
50
|
+
litellm.set_verbose = verbose_mode
|
48
51
|
|
49
52
|
|
50
53
|
def get_task_from_file(file_path: str) -> str:
|
@@ -68,11 +71,6 @@ def display_welcome_message(console: Console, model_name: str) -> None:
|
|
68
71
|
f"[bold cyan]🌟 Welcome to QuantaLogic AI Assistant v{version} ! 🌟[/bold cyan]\n\n"
|
69
72
|
"[green]🎯 How to Use:[/green]\n\n"
|
70
73
|
"1. [bold]Describe your task[/bold]: Tell the AI what you need help with.\n"
|
71
|
-
' - Example: "Write a Python function to calculate Fibonacci numbers."\n'
|
72
|
-
' - Example: "Explain quantum computing in simple terms."\n'
|
73
|
-
' - Example: "Generate a list of 10 creative project ideas."\n'
|
74
|
-
' - Example: "Create a project plan for a new AI startup.\n'
|
75
|
-
' - Example: "Help me debug this Python code."\n\n'
|
76
74
|
"2. [bold]Submit your task[/bold]: Press [bold]Enter[/bold] twice to send your request.\n\n"
|
77
75
|
"3. [bold]Exit the app[/bold]: Leave the input blank and press [bold]Enter[/bold] twice to close the assistant.\n\n"
|
78
76
|
f"[yellow]ℹ️ System Info:[/yellow]\n\n"
|
@@ -82,18 +80,13 @@ def display_welcome_message(console: Console, model_name: str) -> None:
|
|
82
80
|
"- Be as specific as possible in your task description to get the best results!\n"
|
83
81
|
"- Use clear and concise language when describing your task\n"
|
84
82
|
"- For coding tasks, include relevant context and requirements\n"
|
85
|
-
"- The
|
83
|
+
"- The coding agent mode can handle complex tasks - don't hesitate to ask challenging questions!",
|
86
84
|
title="[bold]Instructions[/bold]",
|
87
85
|
border_style="blue",
|
88
86
|
)
|
89
87
|
)
|
90
88
|
|
91
89
|
|
92
|
-
def get_version() -> str:
|
93
|
-
"""Get the current version of the package."""
|
94
|
-
return "QuantaLogic version: 1.0.0"
|
95
|
-
|
96
|
-
|
97
90
|
@click.group(invoke_without_command=True)
|
98
91
|
@click.option("--version", is_flag=True, help="Show version information.")
|
99
92
|
@click.pass_context
|
quantalogic/version.py
ADDED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: quantalogic
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.2
|
4
4
|
Summary: QuantaLogic ReAct Agents
|
5
5
|
Author: Raphaël MANSUY
|
6
6
|
Author-email: raphael.mansuy@gmail.com
|
@@ -20,6 +20,7 @@ Requires-Dist: prompt-toolkit (>=3.0.48,<4.0.0)
|
|
20
20
|
Requires-Dist: pydantic (>=2.10.4,<3.0.0)
|
21
21
|
Requires-Dist: rich (>=13.9.4,<14.0.0)
|
22
22
|
Requires-Dist: tenacity (>=9.0.0,<10.0.0)
|
23
|
+
Requires-Dist: toml (>=0.10.2,<0.11.0)
|
23
24
|
Requires-Dist: tree-sitter (>=0.23.2,<0.24.0)
|
24
25
|
Requires-Dist: tree-sitter-c (>=0.23.4,<0.24.0)
|
25
26
|
Requires-Dist: tree-sitter-cpp (>=0.23.4,<0.24.0)
|
@@ -1,11 +1,11 @@
|
|
1
1
|
quantalogic/__init__.py,sha256=HFk7_19UzHzYwvPzb9QTQ4w_lPwTTPda61AYb8qggZY,686
|
2
2
|
quantalogic/agent.py,sha256=TzSnVWatyAcfIPo-hESubB-0nlhr82-7fIneajaIG3M,25179
|
3
|
-
quantalogic/agent_config.py,sha256=
|
3
|
+
quantalogic/agent_config.py,sha256=sNuZ0Y02h3ra2hcjAE3-8Tt-NE8QSarRsTB0auTLgn0,3595
|
4
4
|
quantalogic/coding_agent.py,sha256=ivHBn3hIDEt9V1LDXI4l-COeGXYVp_v_rrx9ng8sP2A,3214
|
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=lN2lOQeZSIFBZOkgJ8CmHA_TWrGj6OM_dB8OqNrIkhY,6317
|
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
|
@@ -59,10 +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=KCMp_VO1Gh1okgz_ysyGPoR0Sw0FpFSFimW1hvAms6s,64
|
62
63
|
quantalogic/xml_parser.py,sha256=cTRorr5sVfkIzH72M0C-GQ9ROGPiz2FTT66U9ndjzhE,9538
|
63
64
|
quantalogic/xml_tool_parser.py,sha256=lsVzClZBrZan7wjCuCKnGHWzksXI3VMy_vWthxu2_bo,3738
|
64
|
-
quantalogic-0.2.
|
65
|
-
quantalogic-0.2.
|
66
|
-
quantalogic-0.2.
|
67
|
-
quantalogic-0.2.
|
68
|
-
quantalogic-0.2.
|
65
|
+
quantalogic-0.2.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
66
|
+
quantalogic-0.2.2.dist-info/METADATA,sha256=nK98IudCDiahREJnwwdiLI-B7flWMhYrpHtVTphpFYY,38601
|
67
|
+
quantalogic-0.2.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
68
|
+
quantalogic-0.2.2.dist-info/entry_points.txt,sha256=wgSq5SRU98yvlRHGEZD1Xn7sS5CSjH2RfUtTa6Qy28Q,52
|
69
|
+
quantalogic-0.2.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|