hud-python 0.4.26__py3-none-any.whl → 0.4.27__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of hud-python might be problematic. Click here for more details.
- hud/agents/base.py +11 -6
- hud/agents/misc/response_agent.py +1 -1
- hud/utils/tests/test_version.py +1 -1
- hud/version.py +1 -1
- {hud_python-0.4.26.dist-info → hud_python-0.4.27.dist-info}/METADATA +2 -2
- {hud_python-0.4.26.dist-info → hud_python-0.4.27.dist-info}/RECORD +9 -9
- {hud_python-0.4.26.dist-info → hud_python-0.4.27.dist-info}/WHEEL +0 -0
- {hud_python-0.4.26.dist-info → hud_python-0.4.27.dist-info}/entry_points.txt +0 -0
- {hud_python-0.4.26.dist-info → hud_python-0.4.27.dist-info}/licenses/LICENSE +0 -0
hud/agents/base.py
CHANGED
|
@@ -556,7 +556,6 @@ class MCPAgent(ABC):
|
|
|
556
556
|
|
|
557
557
|
all_tools = await self.mcp_client.list_tools()
|
|
558
558
|
|
|
559
|
-
|
|
560
559
|
response_tools_by_server: dict[str, str] = {} # server_name -> tool_name
|
|
561
560
|
for tool in all_tools:
|
|
562
561
|
if "response" in tool.name or tool.name == "response":
|
|
@@ -579,7 +578,9 @@ class MCPAgent(ABC):
|
|
|
579
578
|
for server_name in reversed(server_names):
|
|
580
579
|
if server_name in response_tools_by_server:
|
|
581
580
|
response_tool_name = response_tools_by_server[server_name]
|
|
582
|
-
self.console.debug(
|
|
581
|
+
self.console.debug(
|
|
582
|
+
f"Found response tool '{response_tool_name}' from server '{server_name}'"
|
|
583
|
+
)
|
|
583
584
|
break
|
|
584
585
|
|
|
585
586
|
# Fallback to any response tool
|
|
@@ -593,10 +594,12 @@ class MCPAgent(ABC):
|
|
|
593
594
|
self.response_tool_name = response_tool_name
|
|
594
595
|
self.lifecycle_tools.append(response_tool_name)
|
|
595
596
|
elif response_tool_name:
|
|
596
|
-
self.console.debug(
|
|
597
|
+
self.console.debug(
|
|
598
|
+
f"Response tool '{response_tool_name}' already in lifecycle_tools"
|
|
599
|
+
)
|
|
597
600
|
self.response_tool_name = response_tool_name
|
|
598
601
|
else:
|
|
599
|
-
self.console.debug(
|
|
602
|
+
self.console.debug("No response tools found or no mcp_config")
|
|
600
603
|
|
|
601
604
|
# Filter tools
|
|
602
605
|
self._available_tools = []
|
|
@@ -610,7 +613,7 @@ class MCPAgent(ABC):
|
|
|
610
613
|
for tool in all_tools:
|
|
611
614
|
# Lifecycle tools (setup, evaluate, response) should always be included
|
|
612
615
|
is_lifecycle = tool.name in self.lifecycle_tools
|
|
613
|
-
|
|
616
|
+
|
|
614
617
|
# Check if tool should be included
|
|
615
618
|
if not is_lifecycle:
|
|
616
619
|
if self.allowed_tools and tool.name not in self.allowed_tools:
|
|
@@ -620,7 +623,9 @@ class MCPAgent(ABC):
|
|
|
620
623
|
self.console.debug(f"Skipping tool '{tool.name}' - in disallowed_tools")
|
|
621
624
|
continue
|
|
622
625
|
|
|
623
|
-
self.console.debug(
|
|
626
|
+
self.console.debug(
|
|
627
|
+
f"Adding tool '{tool.name}' to available tools (lifecycle={is_lifecycle})"
|
|
628
|
+
)
|
|
624
629
|
self._available_tools.append(tool)
|
|
625
630
|
self._tool_map[tool.name] = tool
|
|
626
631
|
|
|
@@ -34,7 +34,7 @@ class ResponseAgent:
|
|
|
34
34
|
|
|
35
35
|
- STOP: If the agent indicates it has successfully completed a task, even if phrased as a question
|
|
36
36
|
like "I have entered the right values into this form. Would you like me to do anything else?"
|
|
37
|
-
or "Here is the website. Is there any other information you need?" or if the agent has
|
|
37
|
+
or "Here is the website. Is there any other information you need?" or if the agent has
|
|
38
38
|
strongly determined it wants to stop the task.
|
|
39
39
|
|
|
40
40
|
- CONTINUE: If the agent is asking for clarification before proceeding with a task
|
hud/utils/tests/test_version.py
CHANGED
hud/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hud-python
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.27
|
|
4
4
|
Summary: SDK for the HUD platform.
|
|
5
5
|
Project-URL: Homepage, https://github.com/hud-evals/hud-python
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/hud-evals/hud-python/issues
|
|
@@ -41,7 +41,7 @@ Requires-Dist: hud-mcp-python-sdk>=3.13.2
|
|
|
41
41
|
Requires-Dist: hud-mcp-use-python-sdk>=2.3.16
|
|
42
42
|
Requires-Dist: opentelemetry-api>=1.34.1
|
|
43
43
|
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.34.1
|
|
44
|
-
Requires-Dist: opentelemetry-instrumentation-mcp
|
|
44
|
+
Requires-Dist: opentelemetry-instrumentation-mcp==0.47.0
|
|
45
45
|
Requires-Dist: opentelemetry-sdk>=1.34.1
|
|
46
46
|
Requires-Dist: pathspec>=0.12.1
|
|
47
47
|
Requires-Dist: prompt-toolkit==3.0.51
|
|
@@ -2,16 +2,16 @@ hud/__init__.py,sha256=KU7G-_Mj6Mjf7trXA6X0ufN6QUmqhVi19NKbnNIvD74,532
|
|
|
2
2
|
hud/__main__.py,sha256=YR8Dq8OhINOsVfQ55PmRXXg4fEK84Rt_-rMtJ5rvhWo,145
|
|
3
3
|
hud/settings.py,sha256=bgq_zstNGlan7UDZOiElY8Aw5ZU4xL7Ds5HP_Xzph1A,2535
|
|
4
4
|
hud/types.py,sha256=jta4Hgj_rBdIMcf7mz0tsdgfA1pssp327bxcT6Mfp00,6107
|
|
5
|
-
hud/version.py,sha256
|
|
5
|
+
hud/version.py,sha256=-lY50vN_2vhScYD-TJkkkeLQohONEsT3WAAxfldqpVg,105
|
|
6
6
|
hud/agents/__init__.py,sha256=UoIkljWdbq4bM0LD-mSaw6w826EqdEjOk7r6glNYwYQ,286
|
|
7
|
-
hud/agents/base.py,sha256=
|
|
7
|
+
hud/agents/base.py,sha256=hUCFJZV3L69YFqMd2Room4WZmdmr6rxjiUvhf9cVXys,33811
|
|
8
8
|
hud/agents/claude.py,sha256=yTVbSNMwNjF9qZAnwDSsgrscaenJpMGnGdW_4rFW_pY,15603
|
|
9
9
|
hud/agents/grounded_openai.py,sha256=U-FHjB2Nh1_o0gmlxY5F17lWJ3oHsNRIB2a7z-IKB64,11231
|
|
10
10
|
hud/agents/langchain.py,sha256=1EgCy8jfjunsWxlPC5XfvfLS6_XZVrIF1ZjtHcrvhYw,9584
|
|
11
11
|
hud/agents/openai.py,sha256=ovARRWNuHqKkZ2Q_OCYSVCIZckrh8XY2jUB2p2x1m88,14259
|
|
12
12
|
hud/agents/openai_chat_generic.py,sha256=BDtMQnf9ddYN4fKy-CN9IotLyYvHGdZqjju5PODEnU4,10683
|
|
13
13
|
hud/agents/misc/__init__.py,sha256=BYi4Ytp9b_vycpZFXnr5Oyw6ncKLNNGml8Jrb7bWUb4,136
|
|
14
|
-
hud/agents/misc/response_agent.py,sha256=
|
|
14
|
+
hud/agents/misc/response_agent.py,sha256=OJdQJ76jP9xxQxVYJ-qPcdBxvFr8ABcwbP1f1I5zU5A,3227
|
|
15
15
|
hud/agents/tests/__init__.py,sha256=W-O-_4i34d9TTyEHV-O_q1Ai1gLhzwDaaPo02_TWQIY,34
|
|
16
16
|
hud/agents/tests/test_base.py,sha256=F39ajSqASGUbPyPoWSY9KARFav62qNTK74W11Tr1Tg4,28970
|
|
17
17
|
hud/agents/tests/test_claude.py,sha256=wqEKlzEvx8obz1sSm4NY0j-Zyt1qWNfDOmRqYIuAEd0,13069
|
|
@@ -177,10 +177,10 @@ hud/utils/tests/test_init.py,sha256=2QLQSGgyP9wJhOvPCusm_zjJad0qApOZi1BXpxcdHXQ,
|
|
|
177
177
|
hud/utils/tests/test_mcp.py,sha256=0pUa16mL-bqbZDXp5NHBnt1gO5o10BOg7zTMHZ1DNPM,4023
|
|
178
178
|
hud/utils/tests/test_progress.py,sha256=QSF7Kpi03Ff_l3mAeqW9qs1nhK50j9vBiSobZq7T4f4,7394
|
|
179
179
|
hud/utils/tests/test_telemetry.py,sha256=5jl7bEx8C8b-FfFUko5pf4UY-mPOR-9HaeL98dGtVHM,2781
|
|
180
|
-
hud/utils/tests/test_version.py,sha256=
|
|
180
|
+
hud/utils/tests/test_version.py,sha256=nedCusQa_U-8ulETFb0keW6EYCWFc9kcQN3lIEKgFgw,160
|
|
181
181
|
hud/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
182
|
-
hud_python-0.4.
|
|
183
|
-
hud_python-0.4.
|
|
184
|
-
hud_python-0.4.
|
|
185
|
-
hud_python-0.4.
|
|
186
|
-
hud_python-0.4.
|
|
182
|
+
hud_python-0.4.27.dist-info/METADATA,sha256=Nxr0fHdGSkv0PQAyNvKPT1pW26sV6Tz_gwCOcgWk1Iw,20239
|
|
183
|
+
hud_python-0.4.27.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
184
|
+
hud_python-0.4.27.dist-info/entry_points.txt,sha256=jJbodNFg1m0-CDofe5AHvB4zKBq7sSdP97-ohaQ3ae4,63
|
|
185
|
+
hud_python-0.4.27.dist-info/licenses/LICENSE,sha256=yIzBheVUf86FC1bztAcr7RYWWNxyd3B-UJQ3uddg1HA,1078
|
|
186
|
+
hud_python-0.4.27.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|