Skip to content

Commit f841f94

Browse files
committed
why comment for constructing OPIKconnector
1 parent 07b4e5e commit f841f94

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

integrations/haystack/multi_agent_web_search/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ SERPERDEV_API_KEY=your_serperdev_api_key_here
33

44
OPIK_API_KEY=your_opik_api_key_here
55
OPIK_WORKSPACE=your_workspace
6-
OPIK_PROJECT_NAME=haystack-multi-agent-scout
6+
OPIK_PROJECT_NAME=haystack-multi-agent-scout

integrations/haystack/multi_agent_web_search/agent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525

2626
def build_coordinator() -> Agent:
27+
# WHY: constructing OpikConnector registers Opik as Haystack's global tracer for the whole
28+
# process; the instance is intentionally unused because we run Agents directly, not via a Pipeline.
2729
OpikConnector(name="haystack-multi-agent-scout", project_name=config.OPIK_PROJECT_NAME)
2830

2931
scout_agent = Agent(

0 commit comments

Comments
 (0)