|
9 | 9 |
|
10 | 10 | class IndexWebsiteRequest(BaseModel): |
11 | 11 | base_url: str = Field(description="The base URL to start indexing from (e.g., 'https://docs.example.com')") |
12 | | - domain_filter: str | None = Field(default=None, description="Domain to filter the index (e.g., 'docs.example.com')") |
| 12 | + domain_filter: str | None = Field( |
| 13 | + default=None, description="Domain to filter the index (e.g., 'docs.example.com')" |
| 14 | + ) |
13 | 15 | path_include_patterns: list[str] | None = Field( |
14 | 16 | default=None, description="URL patterns to include (e.g., ['/docs/*', '/api/*']). If empty, includes all." |
15 | 17 | ) |
16 | | - exclude_patterns: list[str] | None = Field( |
| 18 | + path_exclude_patterns: list[str] | None = Field( |
17 | 19 | default=None, description="URL patterns to exclude (e.g., ['/blog/*', '*.pdf'])" |
18 | 20 | ) |
19 | | - version: str | None = Field(default=None, description="Version to tag all crawled pages with") |
20 | | - product: str | None = Field(default=None, description="Product to tag all crawled pages with") |
21 | | - authed: bool | None = Field(default=None, description="Whether crawled pages should be auth-gated") |
| 21 | + version: str | None = Field(default=None, description="Version to tag all indexed pages with") |
| 22 | + product: str | None = Field(default=None, description="Product to tag all indexed pages with") |
| 23 | + authed: bool | None = Field(default=None, description="Whether indexed pages should be auth-gated") |
22 | 24 |
|
23 | 25 |
|
24 | 26 | class IndexWebsiteResponse(BaseModel): |
25 | | - job_id: str = Field(description="ID to track the crawling job status") |
26 | | - base_url: str = Field(description="The base URL being crawled") |
| 27 | + job_id: str = Field(description="ID to track the indexing job status") |
| 28 | + base_url: str = Field(description="The base URL being indexed") |
27 | 29 |
|
28 | 30 |
|
29 | 31 | class GetWebsiteStatusResponse(BaseModel): |
|
0 commit comments