Repository navigation
feat!: add default Parallel web research tools for agents - #1178
Open
George Pickett (georgeatparallel) wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Production orchestration does not retain and close the template that owns the new HTTP client's cleanup.
1 open issue
What changed in this PR
Adds default Parallel web search and page fetching through the existing agent tool dispatcher, including for saved teams without web settings.
Changes:
- Adds deployment-wide and per-agent access controls.
- Integrates dedicated credentials and MCP transport handling.
- Documents the breaking default and adds dispatcher tests.
| File | Description |
|---|---|
| src/tests/backend/services/test_team_service.py | Adds web settings to agent mocks. |
| src/tests/backend/agents/test_agent_factory.py | Disables web access in existing unit tests. |
| src/tests/agents/test_parallel_search.py | Tests dispatch, permissions, credentials, and cleanup. |
| src/backend/services/team_service.py | Preserves uploaded web settings. |
| src/backend/README.md | Documents defaults, controls, and testing. |
| src/backend/config/web_search_config.py | Resolves permissions and dedicated credentials. |
| src/backend/common/models/messages.py | Adds per-agent web settings. |
| src/backend/common/config/app_config.py | Reads deployment web configuration. |
| src/backend/agents/agent_template.py | Connects Parallel tools and registers cleanup. |
| src/backend/agents/agent_factory.py | Passes resolved settings to agents. |
| content_packs/README.md | Links web controls for team authors. |
Review effort: Balanced
Comment on lines
+497
to
+500
| web_client = await self._stack.enter_async_context(AsyncClient( | ||
| headers=self.web_search_config.get_headers(), | ||
| timeout=Timeout(60.0, connect=10.0), | ||
| )) |
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Purpose
Give agents free web search and page fetching with Parallel Search MCP. Anonymous search uses Fast mode, with no Parallel account or API key needed. The agent factory exposes
parallel_web_searchandparallel_web_fetchthrough the existing client-side MCP dispatcher.Does this introduce a breaking change?
Existing teams without web-search settings also gain these tools. Set
WEB_SEARCH_PROVIDER=nonebefore starting the backend to retain no-web behavior for the entire deployment, or set an agent'sweb_search_providerto"none". Per-agentweb_search_toolsrestricts search and fetch separately; an empty list denies both. Existing domain MCP, knowledge-base, and code-interpreter choices retain their own configuration and connections.How to Test
With the backend dependencies installed, run from the repository root:
These tests use a scripted model, the real Agent Framework/MCP client, and HTTP fixtures. They make no external requests and require no Azure, model, or Parallel credentials.
What to Check
Other Information
The backend web research guide documents the new default, controls, and data sent to Parallel. Free access has service limits; Azure inference still uses the application's normal setup.
I work at Parallel.