Skip to content

Commit 67abc01

Browse files
committed
fixing sem ver
1 parent a924a90 commit 67abc01

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
from semantic_kernel.kernel_pydantic import KernelBaseModel
1+
"""SQL semantic verifier response models"""
2+
3+
from semantic_kernel.kernel_pydantic import KernelBaseModel
24

35

46
class SemanticVerifierResponse(KernelBaseModel):
57
"""
6-
Response model for the semantic verifier agent
7-
Args:
8-
analysis (str): The analysis of the SQL query.
9-
judgement (str): The judgement of the SQL query.
10-
differences (list[str]): List of differences found in the SQL query.
11-
summary (str): A one sentence summary of the response.
8+
Model for the response of the semantic verifier agent
129
"""
1310

14-
analysis: str
1511
judgement: str
1612
differences: list[str]
1713
summary: str

src/backend/sql_agents/convert_script.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ async def convert_script(
120120
)
121121
current_migration = result.fixed_query
122122
case AgentType.SEMANTIC_VERIFIER.value:
123+
logger.info(
124+
"Semantic verifier agent response: %s", response.content
125+
)
123126
result = SemanticVerifierResponse.model_validate_json(
124127
response.content or ""
125128
)

0 commit comments

Comments
 (0)