quantalogic 0.30.0__py3-none-any.whl → 0.30.1__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 +21 -2
- {quantalogic-0.30.0.dist-info → quantalogic-0.30.1.dist-info}/METADATA +5 -1
- {quantalogic-0.30.0.dist-info → quantalogic-0.30.1.dist-info}/RECORD +6 -6
- {quantalogic-0.30.0.dist-info → quantalogic-0.30.1.dist-info}/LICENSE +0 -0
- {quantalogic-0.30.0.dist-info → quantalogic-0.30.1.dist-info}/WHEEL +0 -0
- {quantalogic-0.30.0.dist-info → quantalogic-0.30.1.dist-info}/entry_points.txt +0 -0
quantalogic/main.py
CHANGED
@@ -7,10 +7,15 @@ from typing import Optional
|
|
7
7
|
|
8
8
|
# Third-party imports
|
9
9
|
import click
|
10
|
+
from dotenv import load_dotenv
|
10
11
|
from loguru import logger
|
11
12
|
|
12
13
|
from quantalogic.version import get_version
|
13
14
|
|
15
|
+
# Load environment variables from .env file
|
16
|
+
load_dotenv()
|
17
|
+
|
18
|
+
|
14
19
|
# Configure logger
|
15
20
|
logger.remove()
|
16
21
|
|
@@ -80,7 +85,14 @@ def restore_terminal(old_settings):
|
|
80
85
|
@click.option(
|
81
86
|
"--model-name",
|
82
87
|
default=MODEL_NAME,
|
83
|
-
help='Specify the model to use (litellm format
|
88
|
+
help='Specify the model to use (litellm format). Examples:\n'
|
89
|
+
' - openai/gpt-4o-mini\n'
|
90
|
+
' - openai/gpt-4o\n'
|
91
|
+
' - anthropic/claude-3.5-sonnet\n'
|
92
|
+
' - deepseek/deepseek-chat\n'
|
93
|
+
' - deepseek/deepseek-reasoner\n'
|
94
|
+
' - openrouter/deepseek/deepseek-r1\n'
|
95
|
+
' - openrouter/openai/gpt-4o',
|
84
96
|
)
|
85
97
|
@click.option(
|
86
98
|
"--log",
|
@@ -120,7 +132,14 @@ def cli(
|
|
120
132
|
compact_every_n_iteration: int | None,
|
121
133
|
max_tokens_working_memory: int | None,
|
122
134
|
) -> None:
|
123
|
-
"""QuantaLogic AI Assistant - A powerful AI tool for various tasks.
|
135
|
+
"""QuantaLogic AI Assistant - A powerful AI tool for various tasks.
|
136
|
+
|
137
|
+
Environment Variables:
|
138
|
+
- OpenAI: Set `OPENAI_API_KEY` to your OpenAI API key.
|
139
|
+
- Anthropic: Set `ANTHROPIC_API_KEY` to your Anthropic API key.
|
140
|
+
- DeepSeek: Set `DEEPSEEK_API_KEY` to your DeepSeek API key.
|
141
|
+
Use a `.env` file or export these variables in your shell for seamless integration.
|
142
|
+
"""
|
124
143
|
if version:
|
125
144
|
console = Console()
|
126
145
|
current_version = get_version()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: quantalogic
|
3
|
-
Version: 0.30.
|
3
|
+
Version: 0.30.1
|
4
4
|
Summary: QuantaLogic ReAct Agents
|
5
5
|
Author: Raphaël MANSUY
|
6
6
|
Author-email: raphael.mansuy@gmail.com
|
@@ -94,6 +94,10 @@ We created [QuantaLogic](https://www.quantalogic.app) because we saw a significa
|
|
94
94
|
- **Memory Management**: Intelligent context handling and optimization
|
95
95
|
- **Enterprise Ready**: Comprehensive logging, error handling, and validation system
|
96
96
|
|
97
|
+
## Environment Configuration
|
98
|
+
|
99
|
+
To configure the environment API key for Quantalogic using LiteLLM, set the required environment variable for your chosen provider (e.g., `OPENAI_API_KEY` for OpenAI, `ANTHROPIC_API_KEY` for Anthropic, or `DEEPSEEK_API_KEY` for DeepSeek) and any optional variables like `OPENAI_API_BASE` or `OPENROUTER_REFERRER`. Use a `.env` file or a secrets manager to securely store these keys, and load them in your code using `python-dotenv`. For advanced configurations, refer to the [LiteLLM documentation](https://docs.litellm.ai/docs/).
|
100
|
+
|
97
101
|
## 📋 Table of Contents
|
98
102
|
|
99
103
|
- [Release Notes](#release-notes)
|
@@ -10,7 +10,7 @@ quantalogic/event_emitter.py,sha256=jqot2g4JRXc88K6PW837Oqxbf7shZfO-xdPaUWmzupk,
|
|
10
10
|
quantalogic/generative_model.py,sha256=az_kqWdEBQRROvvYZu6d68JQ4nzDbQG23gADeHLMypc,16761
|
11
11
|
quantalogic/get_model_info.py,sha256=YCBZ8qynlq_iLUc--xBrQxacFZL9RHZPv5cdVwjukcw,602
|
12
12
|
quantalogic/interactive_text_editor.py,sha256=_pNPnUG3Y3_YX0R9-kx0vcaUWU0AAC350jpJ5UjrTuE,6986
|
13
|
-
quantalogic/main.py,sha256=
|
13
|
+
quantalogic/main.py,sha256=rxhXMkvFj36fP7Gbl3o1ub_aiXK1yl5YlVySI-ldTQI,7430
|
14
14
|
quantalogic/memory.py,sha256=zbtRuM05jaS2lJll-92dt5JfYVLERnF_m_9xqp2x-k0,6304
|
15
15
|
quantalogic/model_names.py,sha256=UZlz25zG9B2dpfwdw_e1Gw5qFsKQ7iME9FJh9Ts4u6s,938
|
16
16
|
quantalogic/prompts.py,sha256=CW4CRgW1hTpXeWdeJNbPaRPUeUm-xKuGHJrT8mOtvkw,3602
|
@@ -85,8 +85,8 @@ quantalogic/version_check.py,sha256=cttR1lR3OienGLl7NrK1Te1fhDkqSjCci7HC1vFUTSY,
|
|
85
85
|
quantalogic/welcome_message.py,sha256=IXMhem8h7srzNUwvw8G_lmEkHU8PFfote021E_BXmVk,3039
|
86
86
|
quantalogic/xml_parser.py,sha256=uMLQNHTRCg116FwcjRoquZmSwVtE4LEH-6V2E3RD-dA,11466
|
87
87
|
quantalogic/xml_tool_parser.py,sha256=Vz4LEgDbelJynD1siLOVkJ3gLlfHsUk65_gCwbYJyGc,3784
|
88
|
-
quantalogic-0.30.
|
89
|
-
quantalogic-0.30.
|
90
|
-
quantalogic-0.30.
|
91
|
-
quantalogic-0.30.
|
92
|
-
quantalogic-0.30.
|
88
|
+
quantalogic-0.30.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
89
|
+
quantalogic-0.30.1.dist-info/METADATA,sha256=4JtCY2xklibv4XLqIIaA4jKtxs1GPbDKiO8Zj_Uk32o,21096
|
90
|
+
quantalogic-0.30.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
91
|
+
quantalogic-0.30.1.dist-info/entry_points.txt,sha256=h74O_Q3qBRCrDR99qvwB4BpBGzASPUIjCfxHq6Qnups,183
|
92
|
+
quantalogic-0.30.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|