From f7dac9363a87f4a669c51dec57cc4216d8f90a6f Mon Sep 17 00:00:00 2001 From: saidsurucu Date: Wed, 16 Jul 2025 23:34:41 +0300 Subject: [PATCH] fix model issue --- anayasa_mcp_module/models.py | 2 +- mcp_server_main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/anayasa_mcp_module/models.py b/anayasa_mcp_module/models.py index 904004e..195f1e4 100644 --- a/anayasa_mcp_module/models.py +++ b/anayasa_mcp_module/models.py @@ -131,7 +131,7 @@ class AnayasaDecisionSummary(BaseModel): """Model for a single Anayasa Mahkemesi (Norm Denetimi) decision summary from search results.""" decision_reference_no: str = Field("", description="Decision reference number") decision_page_url: str = Field("", description="Decision page URL") - keywords_found_count: int = Field(0, description="Keywords found count") + keywords_found_count: Optional[int] = Field(0, description="Keywords found count") application_type_summary: str = Field("", description="Application type summary") applicant_summary: str = Field("", description="Applicant summary") decision_outcome_summary: str = Field("", description="Decision outcome summary") diff --git a/mcp_server_main.py b/mcp_server_main.py index c939a90..838664b 100644 --- a/mcp_server_main.py +++ b/mcp_server_main.py @@ -1813,7 +1813,7 @@ async def get_rekabet_kurumu_document( } ) async def search_bedesten_unified( - phrase: str = Field(..., description="Turkish search phrase. USE: `+` (required term), `-` (exclude term), `*` (wildcard), `\" \"` (exact phrase), `( )` (grouping), `~` (fuzzy search), `/pattern/` (basic regex with `.` any char, `+` one or more, `?` optional, `[abc]` character class, `{n,m}` repetition, `|` alternation); DO NOT USE: AND, OR, NOT boolean operators, `^$` anchors, `\\b` word boundaries, `()` regex groups, `\\d\\w\\s` special chars, `[TO]` range queries."), + phrase: str = Field(..., description="Turkish search phrase. Turkish full-text search. Boolean: AND, OR, NOT. Required/prohibited: +term, -term. Phrase: \"exact phrase\", \"phrase\"~5 (proximity). Wildcard: term*, t?rm. Fuzzy: term~, term~0.8. Regex: /pattern/ with ., *, +, ?, [abc], [a-z], [^0-9], {n,m}, (group), |, ^, $, \\escape, word boundaries \\b, case flag (?i). Boost: term^2."), court_types: List[BedestenCourtTypeEnum] = Field( default=["YARGITAYKARARI", "DANISTAYKARAR"], description="Court types: YARGITAYKARARI, DANISTAYKARAR, YERELHUKUK, ISTINAFHUKUK, KYB"