Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions akd/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,13 @@ class PaperDataItem(BaseModel):
)


class BaseCriterion(BaseModel):
"""Base class for criteria used in reranking."""

name: str = Field(..., description="Criterion name")
description: str = Field(..., description="Detailed description of what this criterion evaluates")


# =============================================================================
# Extraction Schemas
# =============================================================================
Expand Down Expand Up @@ -331,6 +338,7 @@ def name(self) -> str:
# Type alias for semantic clarity in literature search contexts
LitSearchResult = SearchResultItem


__all__ = [
# Search and Data Models
"SearchResult",
Expand All @@ -342,4 +350,5 @@ def name(self) -> str:
"SingleEstimation",
# Tool Models
"ToolSearchResult",
"BaseCriterion",
]
Loading
Loading