feat: Implement company querying functionality with natural language processing and logging

This commit is contained in:
bolade
2025-10-27 20:12:30 +01:00
parent 1ac755b2d7
commit ff0010019e
7 changed files with 225 additions and 70 deletions
+5
View File
@@ -168,6 +168,7 @@ class InvestorFundData(BaseModel):
class Config:
from_attributes = True
class InvestorMinimal(BaseModel):
"""Minimal investor info with just id and name"""
@@ -177,6 +178,7 @@ class InvestorMinimal(BaseModel):
class Config:
from_attributes = True
class CompanySchemaMinimal(BaseModel):
id: int
name: str
@@ -188,9 +190,12 @@ class CompanySchemaMinimal(BaseModel):
class Config:
from_attributes = True
class CompanyData(BaseModel): # Renamed from CompaniesData for consistency
company: CompanySchemaMinimal
investors: List[InvestorMinimal]
# members: List[CompanyMemberSchema] = []
sectors: List[SectorSchema] = []
class Config:
from_attributes = True