Repository navigation
feat(web-search): add DuckDuckGo provider gated behind experimental #4674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4f26798
feat(web-search): add DuckDuckGo provider gated behind experimental
laitingsheng 07c4e9a
fix(web-search): gate finalization verifier on fetchEnabled and docum…
laitingsheng 503eabd
Merge remote-tracking branch 'origin/main' into feat/4559-duckduckgo-…
laitingsheng 16a3871
test(web-search): cover DDG branches across session, dockerfile, conf…
laitingsheng b5653a0
fix(web-search): wire DDG E2E, downgrade verifier message, rename hel…
laitingsheng f5c765a
fix(web-search): pass BRAVE_API_KEY to DDG job, drop issue ref, activ…
laitingsheng 989958b
docs(web-search): clarify NEMOCLAW_WEB_SEARCH_PROVIDER preselects in …
laitingsheng 94f919e
Merge remote-tracking branch 'origin/main' into feat/4559-duckduckgo-…
laitingsheng ec9713d
merge: resolve docs/reference/network-policies.mdx conflict with main
laitingsheng e5c5f60
merge: resolve Dockerfile/dockerfile-patch/openclaw-config/policies c…
laitingsheng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| preset: | ||
| name: duckduckgo | ||
| description: "DuckDuckGo Search access (experimental, unofficial, keyless)" | ||
| network_policies: | ||
| duckduckgo: | ||
| name: duckduckgo | ||
| endpoints: | ||
| - host: duckduckgo.com | ||
| port: 443 | ||
| protocol: rest | ||
| enforcement: enforce | ||
| rules: | ||
| - allow: { method: GET, path: "/**" } | ||
| - allow: { method: POST, path: "/**" } | ||
| - host: lite.duckduckgo.com | ||
| port: 443 | ||
| protocol: rest | ||
| enforcement: enforce | ||
| rules: | ||
| - allow: { method: GET, path: "/**" } | ||
| - allow: { method: POST, path: "/**" } | ||
| binaries: | ||
| - { path: /usr/local/bin/node } | ||
| - { path: /usr/bin/node } | ||
| - { path: /usr/local/bin/curl } | ||
| - { path: /usr/bin/curl } | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| id: duckduckgo | ||
| display_name: DuckDuckGo Search | ||
| description: DuckDuckGo Search access (experimental, unofficial, keyless) | ||
| category: agent | ||
| endpoints: | ||
| - host: duckduckgo.com | ||
| port: 443 | ||
| protocol: rest | ||
| access: read-write | ||
| enforcement: enforce | ||
| - host: lite.duckduckgo.com | ||
| port: 443 | ||
| protocol: rest | ||
| access: read-write | ||
| enforcement: enforce | ||
| binaries: | ||
| - /usr/local/bin/node | ||
| - /usr/bin/node | ||
| - /usr/local/bin/curl | ||
| - /usr/bin/curl | ||
| inference_capable: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,29 @@ | ||
| // SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| export type WebSearchProvider = "brave" | "duckduckgo"; | ||
|
|
||
| export const WEB_SEARCH_PROVIDERS: readonly WebSearchProvider[] = ["brave", "duckduckgo"]; | ||
|
|
||
| export const DEFAULT_WEB_SEARCH_PROVIDER: WebSearchProvider = "brave"; | ||
|
|
||
| export function isWebSearchProvider(value: unknown): value is WebSearchProvider { | ||
| return WEB_SEARCH_PROVIDERS.includes(value as WebSearchProvider); | ||
| } | ||
|
|
||
| export function normalizeWebSearchProvider(value: unknown): WebSearchProvider { | ||
| return isWebSearchProvider(value) ? value : DEFAULT_WEB_SEARCH_PROVIDER; | ||
| } | ||
|
|
||
| export interface WebSearchConfig { | ||
| fetchEnabled: boolean; | ||
| provider?: WebSearchProvider; | ||
| } | ||
|
|
||
| export function isWebSearchEnabled( | ||
| webSearchConfig: { fetchEnabled?: boolean | null } | null | undefined, | ||
| ): boolean { | ||
| return webSearchConfig?.fetchEnabled === true; | ||
| } | ||
|
|
||
| export const BRAVE_API_KEY_ENV = "BRAVE_API_KEY"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.