refactor(agents): hide tool provider helper types · openclaw/openclaw@283e8cf
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -194,9 +194,9 @@ const BRAVE_FRESHNESS_SHORTCUTS = new Set(["pd", "pw", "pm", "py"]);
|
194 | 194 | const BRAVE_FRESHNESS_RANGE = /^(\d{4}-\d{2}-\d{2})to(\d{4}-\d{2}-\d{2})$/; |
195 | 195 | const PERPLEXITY_RECENCY_VALUES = new Set(["day", "week", "month", "year"]); |
196 | 196 | |
197 | | -export type WebSearchFreshnessProvider = "brave" | "perplexity"; |
198 | | -export type WebSearchRecencyFreshness = "day" | "week" | "month" | "year"; |
199 | | -export type ParsedWebSearchFreshness<Provider extends WebSearchFreshnessProvider> = |
| 197 | +type WebSearchFreshnessProvider = "brave" | "perplexity"; |
| 198 | +type WebSearchRecencyFreshness = "day" | "week" | "month" | "year"; |
| 199 | +type ParsedWebSearchFreshness<Provider extends WebSearchFreshnessProvider> = |
200 | 200 | Provider extends "perplexity" ? WebSearchRecencyFreshness : string; |
201 | 201 | |
202 | 202 | export const FRESHNESS_TO_RECENCY: Record<string, string> = { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。