File tree Expand file tree Collapse file tree
src/haystack_integrations/agent_pack/optimization Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ dependencies = [
6161 # deep_research agent
6262 " tavily-haystack>=0.4.0" ,
6363 # optional Haystack docs toolset for the harness optimizer agent
64- " mcp-haystack>=0.4 .0" ,
64+ " mcp-haystack>=1.2 .0" ,
6565 # the examples build their evaluation corpus from a Hugging Face dataset
6666 " datasets" ,
6767 " trafilatura" ,
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ def create_harness_optimizer_agent(
112112 :param additional_instructions: Guidance appended to the system prompt about what a good configuration looks
113113 like for one specific harness.
114114 :param documentation_tools: Give the agent read-only search over the public Haystack documentation, so it can
115- look up a component's parameters and serialized shape. Requires `mcp-haystack`, and reaches the
115+ look up a component's parameters and serialized shape. Requires `mcp-haystack>=1.2.0 `, and reaches the
116116 documentation server over the network.
117117 :returns: The harness optimizer `Agent`. Its editing tools work on the `draft` and `known` state passed to `run`,
118118 and a run ends when the optimizer calls `submit_candidate` or `finish`. `propose_candidate` runs one turn
@@ -287,6 +287,7 @@ def _render_outcomes(history: list[CandidateOutcome]) -> str:
287287
288288
289289def propose_candidate (
290+ * ,
290291 optimizer_agent : Agent ,
291292 reference : Agent | Pipeline ,
292293 reference_yaml : str ,
Original file line number Diff line number Diff line change 2828if TYPE_CHECKING :
2929 from haystack_integrations .tools .mcp import MCPToolset
3030
31- with LazyImport (message = "Run 'pip install mcp-haystack'" ) as mcp_import :
31+ with LazyImport (message = "Run 'pip install \" mcp-haystack>=1.2.0 \" '" ) as mcp_import :
3232 from haystack_integrations .tools .mcp import MCPToolset , StreamableHttpServerInfo
3333
3434
You can’t perform that action at this time.
0 commit comments