nlsql-coder 0.0.3__tar.gz → 0.0.4__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.
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/PKG-INFO +1 -1
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/agent/helpers/get_agent.py +1 -0
- nlsql_coder-0.0.4/nlsql_coder/app/cli/arg_parsing.py +28 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/data/create_agent_md.py +3 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder.egg-info/PKG-INFO +1 -1
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/pyproject.toml +1 -1
- nlsql_coder-0.0.3/nlsql_coder/app/cli/arg_parsing.py +0 -7
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/LICENSE +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/README.md +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/__init__.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/__init__.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/agent/__init__.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/agent/helpers/__init__.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/agent/helpers/memory_manager.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/agent/helpers/project_details.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/agent/helpers/system_prompt.md +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/agent/model/__init__.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/agent/model/agent.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/agent/tools/__init__.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/agent/tools/file_tools.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/agent/tools/tool_specs.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/cli/__init__.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/cli/interface.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/cli/tool_calling.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/providers/__init__.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/providers/aws/__init__.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/providers/aws/provider.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/providers/base.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/providers/config.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/app/providers/gcp/__init__.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder/data/__init__.py +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder.egg-info/SOURCES.txt +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder.egg-info/dependency_links.txt +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder.egg-info/entry_points.txt +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder.egg-info/requires.txt +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/nlsql_coder.egg-info/top_level.txt +0 -0
- {nlsql_coder-0.0.3 → nlsql_coder-0.0.4}/setup.cfg +0 -0
|
@@ -8,6 +8,7 @@ from importlib import resources
|
|
|
8
8
|
|
|
9
9
|
provider_config = ProviderConfig()
|
|
10
10
|
agent = None
|
|
11
|
+
llm = None
|
|
11
12
|
prompt_path = resources.files("nlsql_coder.app.agent.helpers") / "system_prompt.md"
|
|
12
13
|
system_prompt = prompt_path.read_text()
|
|
13
14
|
agents_md = Path(args.workspace, "AGENTS.md").resolve()
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
|
|
3
|
+
arg_parser = argparse.ArgumentParser()
|
|
4
|
+
|
|
5
|
+
arg_parser.add_argument(
|
|
6
|
+
"command",
|
|
7
|
+
nargs="?",
|
|
8
|
+
default=None
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
arg_parser.add_argument(
|
|
12
|
+
"-w",
|
|
13
|
+
"--workspace",
|
|
14
|
+
default=".",
|
|
15
|
+
help="Path to the target project's workspace."
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
arg_parser.add_argument(
|
|
19
|
+
"-u",
|
|
20
|
+
"--usage",
|
|
21
|
+
action="store_true",
|
|
22
|
+
help="Displayed usage data after each conversation turn."
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
args = arg_parser.parse_args()
|
|
26
|
+
|
|
27
|
+
if args.command == "init":
|
|
28
|
+
args.workspace = "."
|
|
@@ -7,6 +7,9 @@ from pathlib import Path
|
|
|
7
7
|
# Get relevant project files for context
|
|
8
8
|
def create_md():
|
|
9
9
|
try:
|
|
10
|
+
if not llm:
|
|
11
|
+
raise EnvironmentError("Environment variables not present or incorrect.")
|
|
12
|
+
return
|
|
10
13
|
root = Path(args.workspace)
|
|
11
14
|
if Path(root, "AGENTS.md").exists():
|
|
12
15
|
return "exists"
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import argparse
|
|
2
|
-
|
|
3
|
-
arg_parser = argparse.ArgumentParser()
|
|
4
|
-
arg_parser.add_argument("-w", "--workspace", default=".", help="Path to the targe project's workspace.")
|
|
5
|
-
arg_parser.add_argument("-u", "--usage", action="store_true", help="Displayed usage data after each conversation turn.")
|
|
6
|
-
|
|
7
|
-
args = arg_parser.parse_args()
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|