asktable-advisor 1.0.2__tar.gz → 1.0.3__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.
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/.env.example +5 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/PKG-INFO +1 -1
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/__main__.py +26 -13
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/__version__.py +1 -1
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/config.py +6 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor.egg-info/PKG-INFO +1 -1
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/pyproject.toml +1 -1
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/CLAUDE.md +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/LICENSE +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/MANIFEST.in +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/README.md +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/__init__.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/agent/__init__.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/agent/advisor.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/agent/llm_client.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/agent/prompts.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/agent/tools.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/asktable/__init__.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/asktable/client.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/asktable/inspector.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/asktable/resources/__init__.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/conversation/__init__.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/database/__init__.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/database/data_generator.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/database/manager.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/database/schema_generator.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/knowledge/__init__.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/utils/__init__.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor.egg-info/SOURCES.txt +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor.egg-info/dependency_links.txt +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor.egg-info/entry_points.txt +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor.egg-info/requires.txt +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor.egg-info/top_level.txt +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/setup.cfg +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/tests/test_config.py +0 -0
- {asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/tests/test_scenarios.py +0 -0
|
@@ -17,6 +17,11 @@ AGENT_MODEL=qwen3-max
|
|
|
17
17
|
AGENT_TEMPERATURE=0.7
|
|
18
18
|
AGENT_MAX_TOKENS=8192 # Maximum: 65536 for qwen3-max
|
|
19
19
|
|
|
20
|
+
# Logging Configuration
|
|
21
|
+
# Options: DEBUG, INFO, WARNING, ERROR, CRITICAL
|
|
22
|
+
# Use WARNING or ERROR to reduce log output in production
|
|
23
|
+
LOG_LEVEL=WARNING
|
|
24
|
+
|
|
20
25
|
# MySQL Database Configuration
|
|
21
26
|
MYSQL_HOST=
|
|
22
27
|
MYSQL_PORT=
|
|
@@ -1,29 +1,39 @@
|
|
|
1
1
|
"""Command-line interface for AskTable Advisor."""
|
|
2
2
|
|
|
3
|
-
import sys
|
|
4
3
|
import logging
|
|
5
|
-
|
|
4
|
+
import sys
|
|
6
5
|
|
|
7
6
|
from rich.console import Console
|
|
8
|
-
from rich.panel import Panel
|
|
9
7
|
from rich.markdown import Markdown
|
|
8
|
+
from rich.panel import Panel
|
|
10
9
|
from rich.prompt import Prompt
|
|
11
10
|
|
|
12
|
-
from .config import AdvisorSettings, get_settings
|
|
13
11
|
from .agent.advisor import AdvisorAgent
|
|
12
|
+
from .config import get_settings
|
|
14
13
|
|
|
15
14
|
# Setup console
|
|
16
15
|
console = Console()
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
|
|
18
|
+
def setup_logging(log_level: str = "WARNING") -> None:
|
|
19
|
+
"""
|
|
20
|
+
Setup logging configuration.
|
|
21
|
+
|
|
22
|
+
Args:
|
|
23
|
+
log_level: Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
|
|
24
|
+
"""
|
|
25
|
+
# Convert string to logging level
|
|
26
|
+
numeric_level = getattr(logging, log_level.upper(), logging.WARNING)
|
|
27
|
+
|
|
28
|
+
logging.basicConfig(
|
|
29
|
+
level=numeric_level,
|
|
30
|
+
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
|
31
|
+
handlers=[
|
|
32
|
+
logging.FileHandler("asktable_advisor.log"),
|
|
33
|
+
logging.StreamHandler(sys.stderr),
|
|
34
|
+
],
|
|
35
|
+
force=True, # Override any existing configuration
|
|
36
|
+
)
|
|
27
37
|
|
|
28
38
|
|
|
29
39
|
def print_welcome() -> None:
|
|
@@ -128,6 +138,9 @@ def main() -> None:
|
|
|
128
138
|
# Load settings
|
|
129
139
|
settings = get_settings()
|
|
130
140
|
|
|
141
|
+
# Setup logging with configured level
|
|
142
|
+
setup_logging(settings.log_level)
|
|
143
|
+
|
|
131
144
|
# Print welcome
|
|
132
145
|
print_welcome()
|
|
133
146
|
|
|
@@ -45,6 +45,12 @@ class AdvisorSettings(BaseSettings):
|
|
|
45
45
|
description="Maximum tokens for LLM responses",
|
|
46
46
|
)
|
|
47
47
|
|
|
48
|
+
# Logging Configuration
|
|
49
|
+
log_level: str = Field(
|
|
50
|
+
default="WARNING",
|
|
51
|
+
description="Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)",
|
|
52
|
+
)
|
|
53
|
+
|
|
48
54
|
# MySQL Database Configuration
|
|
49
55
|
mysql_host: str = Field(..., description="MySQL host")
|
|
50
56
|
mysql_port: int = Field(default=3306, description="MySQL port")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/asktable/resources/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/database/data_generator.py
RENAMED
|
File without changes
|
|
File without changes
|
{asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor/database/schema_generator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{asktable_advisor-1.0.2 → asktable_advisor-1.0.3}/asktable_advisor.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|