pilot.linkstec 0.0.22__tar.gz → 0.0.24__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.
Potentially problematic release.
This version of pilot.linkstec might be problematic. Click here for more details.
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/PKG-INFO +1 -1
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/pyproject.toml +1 -1
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/generater/vertexai.py +8 -12
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot.linkstec.egg-info/PKG-INFO +1 -1
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/LICENSE +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/README.md +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/setup.cfg +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/__init__.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/config/__init__.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/config/config_reader.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/control/__init__.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/control/control_interface.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/control/impl/__init__.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/control/impl/base_controller.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/conver/__init__.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/conver/converfileEncodding.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/conver/nkf_converter.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/generater/__init__.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/job/__init__.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/job/impl/__init__.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/job/impl/base_job.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/job/job_interface.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/logging/__init__.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/logging/logger.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/processor/__init__.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/processor/code_processor.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/processor/code_processor_pipeline.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/splitters/__init__.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/splitters/cobolsplitter.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/unit/__init__.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/unit/impl/__init__.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/unit/impl/base_unit.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/unit/unit_interface.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/util/__init__.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/util/files.py +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot.linkstec.egg-info/SOURCES.txt +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot.linkstec.egg-info/dependency_links.txt +0 -0
- {pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot.linkstec.egg-info/top_level.txt +0 -0
|
@@ -13,11 +13,11 @@ class VertexAISingleton:
|
|
|
13
13
|
encoding = None
|
|
14
14
|
|
|
15
15
|
SQL_SYSTEM_PROMPT_EN = (
|
|
16
|
-
"
|
|
17
|
-
"1.
|
|
16
|
+
"For SQL-related processing, analysis, and modifications:\n"
|
|
17
|
+
"1. When analyzing SQL statements such as \"SELECT COUNT(X) INTO :COLUMN FROM TABLE_NAME;\", please identify TABLE_NAME as a database table.\n"
|
|
18
|
+
"2. Extract and document all table names, column references, and SQL operations for comprehensive program analysis."
|
|
18
19
|
)
|
|
19
20
|
|
|
20
|
-
|
|
21
21
|
def __new__(cls, model_name: str = "gemini-2.5-pro", system_prompt: Optional[str] = None):
|
|
22
22
|
if cls._instance is None:
|
|
23
23
|
with cls._lock:
|
|
@@ -30,13 +30,14 @@ class VertexAISingleton:
|
|
|
30
30
|
if not self._initialized:
|
|
31
31
|
with self._lock:
|
|
32
32
|
if not self._initialized:
|
|
33
|
-
self.model = GenerativeModel(model_name)
|
|
34
|
-
self.encoding = tiktoken.get_encoding("cl100k_base")
|
|
35
|
-
# system_promptにSQL_SYSTEM_PROMPT_ENを追加
|
|
36
33
|
if system_prompt:
|
|
37
34
|
self.system_prompt = f"{system_prompt.rstrip()}\n\n{self.SQL_SYSTEM_PROMPT_EN}"
|
|
38
35
|
else:
|
|
39
36
|
self.system_prompt = self.SQL_SYSTEM_PROMPT_EN
|
|
37
|
+
self.model = GenerativeModel(model_name=model_name,system_instruction = self.system_prompt)
|
|
38
|
+
self.encoding = tiktoken.get_encoding("cl100k_base")
|
|
39
|
+
# system_promptにSQL_SYSTEM_PROMPT_ENを追加
|
|
40
|
+
|
|
40
41
|
self._initialized = True
|
|
41
42
|
else:
|
|
42
43
|
# 既存インスタンスでもsystem_promptを更新可能に
|
|
@@ -47,14 +48,9 @@ class VertexAISingleton:
|
|
|
47
48
|
"""複数スレッドから安全に呼び出し可能"""
|
|
48
49
|
try:
|
|
49
50
|
# システムプロンプトをconfigとして渡す
|
|
50
|
-
|
|
51
|
-
generation_config = types.GenerateContentConfig(
|
|
52
|
-
system_instruction = self.system_prompt
|
|
53
|
-
)
|
|
54
51
|
prompt = self.exchange_prompt(prompt)
|
|
55
52
|
response = self.model.generate_content(
|
|
56
|
-
contents=prompt
|
|
57
|
-
generation_config = generation_config # 正しい名前で渡す
|
|
53
|
+
contents=prompt # 引数名を明示
|
|
58
54
|
)
|
|
59
55
|
return {
|
|
60
56
|
"prompt": prompt,
|
|
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
|
{pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot/processor/code_processor_pipeline.py
RENAMED
|
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
|
{pilot_linkstec-0.0.22 → pilot_linkstec-0.0.24}/src/pilot.linkstec.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|