pilot.linkstec 0.0.18__tar.gz → 0.0.19__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.18 → pilot_linkstec-0.0.19}/PKG-INFO +1 -1
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/pyproject.toml +1 -1
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/generater/vertexai.py +12 -16
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot.linkstec.egg-info/PKG-INFO +1 -1
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/LICENSE +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/README.md +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/setup.cfg +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/__init__.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/config/__init__.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/config/config_reader.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/control/__init__.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/control/control_interface.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/control/impl/__init__.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/control/impl/base_controller.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/conver/__init__.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/conver/converfileEncodding.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/conver/nkf_converter.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/generater/__init__.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/job/__init__.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/job/impl/__init__.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/job/impl/base_job.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/job/job_interface.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/logging/__init__.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/logging/logger.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/processor/__init__.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/processor/code_processor.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/processor/code_processor_pipeline.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/splitters/__init__.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/splitters/cobolsplitter.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/unit/__init__.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/unit/impl/__init__.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/unit/impl/base_unit.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/unit/unit_interface.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/util/__init__.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot/util/files.py +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot.linkstec.egg-info/SOURCES.txt +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot.linkstec.egg-info/dependency_links.txt +0 -0
- {pilot_linkstec-0.0.18 → pilot_linkstec-0.0.19}/src/pilot.linkstec.egg-info/top_level.txt +0 -0
|
@@ -46,9 +46,18 @@ class VertexAISingleton:
|
|
|
46
46
|
def generate_content(self, prompt: str) -> Dict[str, Any]:
|
|
47
47
|
"""複数スレッドから安全に呼び出し可能"""
|
|
48
48
|
try:
|
|
49
|
-
#
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
# システムプロンプトをconfigとして渡す
|
|
50
|
+
genai_config = None
|
|
51
|
+
if getattr(self, "system_prompt", None):
|
|
52
|
+
# Vertex AI SDK公式: config引数にsystem_instructionを指定
|
|
53
|
+
genai_config = {
|
|
54
|
+
"system_instruction": self.system_prompt
|
|
55
|
+
}
|
|
56
|
+
newprompt = self.exchange_prompt(prompt)
|
|
57
|
+
response = self.model.generate_content(
|
|
58
|
+
contents=newprompt, # 引数名を明示
|
|
59
|
+
generation_config=genai_config # 正しい名前で渡す
|
|
60
|
+
)
|
|
52
61
|
return {
|
|
53
62
|
"prompt": prompt,
|
|
54
63
|
"response": self._remove_code_fence(response.text),
|
|
@@ -119,19 +128,6 @@ class VertexAISingleton:
|
|
|
119
128
|
|
|
120
129
|
return text
|
|
121
130
|
|
|
122
|
-
def replace_aaa_in_section(code: str) -> str:
|
|
123
|
-
"""
|
|
124
|
-
SECTION.~EXIT.ブロック中のAAAをBBBに置換し、全体をstrで返す
|
|
125
|
-
"""
|
|
126
|
-
pattern = r"SECTION.(.*?)(EXIT.)"
|
|
127
|
-
|
|
128
|
-
def repl(m):
|
|
129
|
-
block = m.group(1)
|
|
130
|
-
block_modified = block.replace("AAA", "BBB")
|
|
131
|
-
return f"SECTION.{block_modified}EXIT."
|
|
132
|
-
|
|
133
|
-
result = re.sub(pattern, repl, code, flags=re.DOTALL | re.IGNORECASE)
|
|
134
|
-
return result
|
|
135
131
|
|
|
136
132
|
def extract_and_flatten_sql(self, code):
|
|
137
133
|
# EXEC SQL ... END-EXEC. にマッチ
|
|
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.18 → pilot_linkstec-0.0.19}/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.18 → pilot_linkstec-0.0.19}/src/pilot.linkstec.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|