Skip to content

Commit 9632d65

Browse files
committed
Merge branch 'feat/harness-optimizer-agent' into feat/harness-optimization-experiment
2 parents 3bebcbc + b0ac87d commit 9632d65

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎integrations/agent_pack/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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",

‎integrations/agent_pack/src/haystack_integrations/agent_pack/optimization/agent.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

289289
def propose_candidate(
290+
*,
290291
optimizer_agent: Agent,
291292
reference: Agent | Pipeline,
292293
reference_yaml: str,

‎integrations/agent_pack/src/haystack_integrations/agent_pack/optimization/tools.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
if 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

0 commit comments

Comments
 (0)