77
88from ..._types import SequenceNotStr
99from ..._utils import PropertyInfo
10+ from .fetch_policy_param import FetchPolicyParam
1011from .parallel_beta_param import ParallelBetaParam
1112from .excerpt_settings_param import ExcerptSettingsParam
1213
13- __all__ = ["BetaExtractParams" , "Excerpts" , "FetchPolicy" , " FullContent" , "FullContentFullContentSettings" ]
14+ __all__ = ["BetaExtractParams" , "Excerpts" , "FullContent" , "FullContentFullContentSettings" ]
1415
1516
1617class BetaExtractParams (TypedDict , total = False ):
@@ -23,7 +24,7 @@ class BetaExtractParams(TypedDict, total=False):
2324 redundant with full content.
2425 """
2526
26- fetch_policy : Optional [FetchPolicy ]
27+ fetch_policy : Optional [FetchPolicyParam ]
2728 """Fetch policy.
2829
2930 Determines when to return content from the cache (faster) vs fetching live
@@ -50,29 +51,6 @@ class BetaExtractParams(TypedDict, total=False):
5051Excerpts : TypeAlias = Union [bool , ExcerptSettingsParam ]
5152
5253
53- class FetchPolicy (TypedDict , total = False ):
54- disable_cache_fallback : bool
55- """
56- If false, fallback to cached content older than max-age if live fetch fails or
57- times out. If true, returns an error instead.
58- """
59-
60- max_age_seconds : Optional [int ]
61- """Maximum age of cached content in seconds to trigger a live fetch.
62-
63- Minimum value 600 seconds (10 minutes). If not provided, a dynamic age policy
64- will be used based on the search objective and url.
65- """
66-
67- timeout_seconds : Optional [float ]
68- """Timeout in seconds for fetching live content if unavailable in cache.
69-
70- If unspecified a dynamic timeout will be used based on the url, generally 15
71- seconds for simple pages and up to 60 seconds for complex pages requiring
72- javascript or PDF rendering.
73- """
74-
75-
7654class FullContentFullContentSettings (TypedDict , total = False ):
7755 max_chars_per_result : Optional [int ]
7856 """
0 commit comments