refactor(knowledge-base mcp server): adjust formatting for consistency and readability

Improved code formatting, line breaks, and indentation across chunking logic and multiple test modules to enhance code clarity and maintain consistent style. No functional changes made.
This commit is contained in:
2026-01-06 17:20:31 +01:00
parent 3f23bc3db3
commit 51404216ae
15 changed files with 306 additions and 155 deletions

View File

@@ -149,12 +149,8 @@ class IngestRequest(BaseModel):
source_path: str | None = Field(
default=None, description="Source file path for reference"
)
collection: str = Field(
default="default", description="Collection to store in"
)
chunk_type: ChunkType = Field(
default=ChunkType.TEXT, description="Type of content"
)
collection: str = Field(default="default", description="Collection to store in")
chunk_type: ChunkType = Field(default=ChunkType.TEXT, description="Type of content")
file_type: FileType | None = Field(
default=None, description="File type for code chunking"
)
@@ -255,12 +251,8 @@ class DeleteRequest(BaseModel):
project_id: str = Field(..., description="Project ID for scoping")
agent_id: str = Field(..., description="Agent ID making the request")
source_path: str | None = Field(
default=None, description="Delete by source path"
)
collection: str | None = Field(
default=None, description="Delete entire collection"
)
source_path: str | None = Field(default=None, description="Delete by source path")
collection: str | None = Field(default=None, description="Delete entire collection")
chunk_ids: list[str] | None = Field(
default=None, description="Delete specific chunks"
)