feat: add comprehensive type definitions and improve test coverage

Add new type definitions file with extensive Union type aliases for all core components including AsyncUrlSeeder, SeedingConfig, and various crawler strategies. Enhance test coverage with improved bot detection tests, Docker-based testing, and extended features validation. The changes provide better type safety and more robust testing infrastructure for the crawling framework.
This commit is contained in:
AHMET YILMAZ
2025-10-13 18:49:01 +08:00
parent 201843a204
commit 8cca9704eb
21 changed files with 2626 additions and 704 deletions

View File

@@ -39,6 +39,7 @@ class LlmJobPayload(BaseModel):
provider: Optional[str] = None
temperature: Optional[float] = None
base_url: Optional[str] = None
chunking_strategy: Optional[Dict] = None
class CrawlJobPayload(BaseModel):
@@ -67,6 +68,7 @@ async def llm_job_enqueue(
provider=payload.provider,
temperature=payload.temperature,
api_base_url=payload.base_url,
chunking_strategy_config=payload.chunking_strategy,
)