graph
This commit is contained in:
@@ -9,10 +9,27 @@ export const crawlPageItemSchema = z
|
||||
status: z.string().optional(),
|
||||
page_type: z.string().optional(),
|
||||
title: z.string().nullable().optional(),
|
||||
extraction_mode: z.string().nullable().optional(),
|
||||
effective_extraction_mode: z.string().nullable().optional(),
|
||||
llm_skipped: z.boolean().optional(),
|
||||
llm_skip_reason: z.string().nullable().optional(),
|
||||
fallback_used: z.boolean().optional(),
|
||||
agreement_claim_count: z.number().optional(),
|
||||
conflict_claim_count: z.number().optional(),
|
||||
error: z.string().nullable().optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
export const crawlExtractionSummarySchema = z
|
||||
.object({
|
||||
llm_skipped_count: z.number().default(0),
|
||||
fallback_count: z.number().default(0),
|
||||
conflict_claim_count: z.number().default(0),
|
||||
agreement_claim_count: z.number().default(0),
|
||||
llm_call_count: z.number().default(0),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
export const crawlProgressSchema = z
|
||||
.object({
|
||||
seed_url: z.string().optional(),
|
||||
@@ -23,6 +40,7 @@ export const crawlProgressSchema = z
|
||||
errors: z.array(z.string()).optional(),
|
||||
pages: z.array(crawlPageItemSchema).optional(),
|
||||
latest_page: crawlPageItemSchema.optional(),
|
||||
extraction_summary: crawlExtractionSummarySchema.optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
@@ -49,9 +67,11 @@ export interface StartSiteCrawlRequest {
|
||||
max_pages?: number;
|
||||
same_domain_only?: boolean;
|
||||
analyze_page_types?: string[];
|
||||
extraction_mode?: "rule_only" | "llm_only" | "hybrid" | "compare";
|
||||
extractor_provider?: string;
|
||||
extractor_model?: string | null;
|
||||
extractor_base_url?: string | null;
|
||||
fallback_to_rules?: boolean;
|
||||
check_robots_txt?: boolean;
|
||||
respect_robots_txt?: boolean | null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user