|
28 | 28 | "SearchParallelTargetOptionsAdvancedSettingsExcerptSettings", |
29 | 29 | "SearchParallelTargetOptionsAdvancedSettingsFetchPolicy", |
30 | 30 | "SearchParallelTargetOptionsAdvancedSettingsSourcePolicy", |
31 | | - "SearchValyuTarget", |
32 | | - "SearchValyuTargetOptions", |
33 | 31 | "SearchOctenTarget", |
34 | 32 | "SearchOctenTargetOptions", |
35 | 33 | "SearchOctenTargetOptionsFullContent", |
|
40 | 38 | "SearchYouTargetOptionsExtractionFullPage", |
41 | 39 | "SearchTavilyTarget", |
42 | 40 | "SearchTavilyTargetOptions", |
43 | | - "SearchSerpAPITarget", |
44 | | - "SearchSerpAPITargetOptions", |
45 | 41 | ] |
46 | 42 |
|
47 | 43 |
|
@@ -335,57 +331,6 @@ class SearchParallelTarget(TypedDict, total=False): |
335 | 331 | options: SearchParallelTargetOptions |
336 | 332 |
|
337 | 333 |
|
338 | | -class SearchValyuTargetOptions(TypedDict, total=False): |
339 | | - fast_mode: bool |
340 | | - """Trade depth for latency.""" |
341 | | - |
342 | | - historical_cache: bool |
343 | | - """Allow historical cached results.""" |
344 | | - |
345 | | - include_abstracts: bool |
346 | | - """Include abstracts for academic sources.""" |
347 | | - |
348 | | - instructions: str |
349 | | - """Natural-language retrieval guidance.""" |
350 | | - |
351 | | - is_tool_call: bool |
352 | | - """Mark the search as an agent tool call.""" |
353 | | - |
354 | | - max_num_results: int |
355 | | - """Provider-native count. Lower-only alias for max_results.""" |
356 | | - |
357 | | - max_price: float |
358 | | - """Provider-native USD-per-thousand-results price ceiling. Forwarded to Valyu.""" |
359 | | - |
360 | | - relevance_threshold: float |
361 | | - """Provider-native minimum relevance threshold. |
362 | | -
|
363 | | - Not a normalized cross-provider score. |
364 | | - """ |
365 | | - |
366 | | - response_length: Literal["short", "medium", "large", "max"] |
367 | | - """Provider result-content length preset.""" |
368 | | - |
369 | | - search_type: str |
370 | | - """Corpus selector, including all, web, proprietary, and news. |
371 | | -
|
372 | | - Provider corpus choice may change billing; Kernel does not force web-only |
373 | | - searches. |
374 | | - """ |
375 | | - |
376 | | - source_biases: SequenceNotStr[str] |
377 | | - """Bias retrieval toward these sources.""" |
378 | | - |
379 | | - url_only: bool |
380 | | - """Return URLs without content.""" |
381 | | - |
382 | | - |
383 | | -class SearchValyuTarget(TypedDict, total=False): |
384 | | - provider: Required[Literal["valyu"]] |
385 | | - |
386 | | - options: SearchValyuTargetOptions |
387 | | - |
388 | | - |
389 | 334 | class SearchOctenTargetOptionsFullContent(TypedDict, total=False): |
390 | 335 | enable: bool |
391 | 336 |
|
@@ -575,68 +520,13 @@ class SearchTavilyTarget(TypedDict, total=False): |
575 | 520 | options: SearchTavilyTargetOptions |
576 | 521 |
|
577 | 522 |
|
578 | | -class SearchSerpAPITargetOptions(TypedDict, total=False): |
579 | | - engine: Required[str] |
580 | | - """SerpApi engine identifier. |
581 | | -
|
582 | | - The Kernel integration currently supports google only. |
583 | | - """ |
584 | | - |
585 | | - device: Literal["desktop", "mobile", "tablet"] |
586 | | - """Device profile used for the search.""" |
587 | | - |
588 | | - filter: Literal[0, 1] |
589 | | - """Google duplicate-content filter.""" |
590 | | - |
591 | | - gl: str |
592 | | - """Two-letter Google country code.""" |
593 | | - |
594 | | - google_domain: str |
595 | | - """Google domain to search when using the google engine.""" |
596 | | - |
597 | | - hl: str |
598 | | - """Interface language code.""" |
599 | | - |
600 | | - location: str |
601 | | - """Free-form geographic location used for localized results.""" |
602 | | - |
603 | | - nfpr: Literal[0, 1] |
604 | | - """Google auto-correction filter.""" |
605 | | - |
606 | | - no_cache: bool |
607 | | - """When true, bypass SerpApi cached results when supported.""" |
608 | | - |
609 | | - num: int |
610 | | - """Number of results requested from the search engine.""" |
611 | | - |
612 | | - safe: Literal["active", "off"] |
613 | | - """Safe-search setting for engines that support it.""" |
614 | | - |
615 | | - start: int |
616 | | - """Zero-based result offset for pagination.""" |
617 | | - |
618 | | - tbm: str |
619 | | - """Google vertical search selector, such as images, video, news, or shopping.""" |
620 | | - |
621 | | - tbs: str |
622 | | - """Google time and search modifiers, including freshness filters.""" |
623 | | - |
624 | | - |
625 | | -class SearchSerpAPITarget(TypedDict, total=False): |
626 | | - provider: Required[Literal["serpapi"]] |
627 | | - |
628 | | - options: SearchSerpAPITargetOptions |
629 | | - |
630 | | - |
631 | 523 | ProviderTargetParam: TypeAlias = Union[ |
632 | 524 | SearchBraveTarget, |
633 | 525 | SearchExaTarget, |
634 | 526 | SearchPerplexityTarget, |
635 | 527 | SearchContextTarget, |
636 | 528 | SearchParallelTarget, |
637 | | - SearchValyuTarget, |
638 | 529 | SearchOctenTarget, |
639 | 530 | SearchYouTarget, |
640 | 531 | SearchTavilyTarget, |
641 | | - SearchSerpAPITarget, |
642 | 532 | ] |
0 commit comments