hud-python 0.4.39__py3-none-any.whl → 0.4.40__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/lite_llm.py CHANGED
@@ -63,7 +63,7 @@ class LiteAgent(GenericOpenAIChatAgent):
63
63
  messages: list[Any],
64
64
  tools: list[dict] | None,
65
65
  extra: dict[str, Any],
66
- ):
66
+ ) -> Any:
67
67
  return await litellm.acompletion(
68
68
  model=self.model_name,
69
69
  messages=messages,
@@ -177,16 +177,16 @@ class GenericOpenAIChatAgent(MCPAgent):
177
177
  messages: list[Any],
178
178
  tools: list[dict] | None,
179
179
  extra: dict[str, Any],
180
- ):
180
+ ) -> Any:
181
181
  if self.oai is None:
182
182
  raise ValueError("openai_client is required for GenericOpenAIChatAgent")
183
183
  # default transport = OpenAI SDK
184
184
  return await self.oai.chat.completions.create(
185
185
  model=self.model_name,
186
186
  messages=messages,
187
- tools=tools, # already ChatCompletionToolParam-shaped
187
+ tools=tools, # type: ignore ready ChatCompletionToolParam-shaped
188
188
  **extra,
189
- )
189
+ ) # type: ignore
190
190
 
191
191
  @instrument(
192
192
  span_type="agent",
@@ -204,7 +204,7 @@ class GenericOpenAIChatAgent(MCPAgent):
204
204
 
205
205
  try:
206
206
  response = await self._invoke_chat_completion(
207
- messages=messages, tools=tools, extra=extra
207
+ messages=messages, tools=tools, extra=extra # type: ignore
208
208
  )
209
209
  except Exception as e:
210
210
  error_content = f"Error getting response {e}"
hud/cli/__init__.py CHANGED
@@ -1178,6 +1178,11 @@ def rl(
1178
1178
  "--vllm-gpu",
1179
1179
  help="Specific GPU for vLLM server",
1180
1180
  ),
1181
+ skip_vllm_startup: bool = typer.Option(
1182
+ False,
1183
+ "--skip-vllm-startup",
1184
+ help="Skip the vLLM server startup",
1185
+ ),
1181
1186
  ) -> None:
1182
1187
  """🎯 Run GRPO reinforcement learning training on tasks."""
1183
1188
  # Import from the rl module
@@ -1195,6 +1200,7 @@ def rl(
1195
1200
  ddp_gpus=ddp_gpus,
1196
1201
  vllm_gpu=vllm_gpu,
1197
1202
  yes=yes,
1203
+ skip_vllm_startup=skip_vllm_startup,
1198
1204
  )
1199
1205
 
1200
1206
 
hud/cli/init.py CHANGED
@@ -85,9 +85,9 @@ def _prompt_for_preset() -> str:
85
85
  """Ask the user to choose a preset when not provided."""
86
86
  try:
87
87
  choices = [
88
- {"name": "blank", "message": "blank │ minimal template"},
89
- {"name": "deep-research", "message": "deep-research │ remote browser preset"},
90
- {"name": "browser", "message": "browser │ local browser preset"},
88
+ {"name": "blank", "message": "blank"},
89
+ {"name": "deep-research", "message": "deep-research"},
90
+ {"name": "browser", "message": "browser"},
91
91
  ]
92
92
  display_choices = [c["message"] for c in choices]
93
93
  selected = questionary.select(
hud/cli/rl/__init__.py CHANGED
@@ -78,10 +78,9 @@ def rl_command(
78
78
  "-y",
79
79
  help="Auto-accept all prompts and use defaults (lazy mode)",
80
80
  ),
81
- # Internal flag
82
81
  skip_vllm_startup: bool = typer.Option(
83
82
  False,
84
- hidden=True,
83
+ "--skip-vllm-startup",
85
84
  help="Skip local vLLM server startup (for internal use)",
86
85
  ),
87
86
  ) -> None:
@@ -5,4 +5,4 @@ def test_import():
5
5
  """Test that the package can be imported."""
6
6
  import hud
7
7
 
8
- assert hud.__version__ == "0.4.39"
8
+ assert hud.__version__ == "0.4.40"
hud/version.py CHANGED
@@ -4,4 +4,4 @@ Version information for the HUD SDK.
4
4
 
5
5
  from __future__ import annotations
6
6
 
7
- __version__ = "0.4.39"
7
+ __version__ = "0.4.40"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hud-python
3
- Version: 0.4.39
3
+ Version: 0.4.40
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
@@ -254,8 +254,8 @@ This is a Qwen‑2.5‑VL‑3B agent training a policy on the 2048-basic browser
254
254
  Train with the new interactive `hud rl` flow:
255
255
 
256
256
  ```bash
257
- # Install CLI with RL extras
258
- uv tool install "hud-python[rl]"
257
+ # Install CLI
258
+ uv tool install hud-python
259
259
 
260
260
  # Option A: Run directly from a HuggingFace dataset
261
261
  hud rl hud-evals/basic-2048
@@ -2,15 +2,15 @@ hud/__init__.py,sha256=JMDFUE1pP0J1Xl_miBdt7ERvoffZmTzSFe8yxz512A8,552
2
2
  hud/__main__.py,sha256=YR8Dq8OhINOsVfQ55PmRXXg4fEK84Rt_-rMtJ5rvhWo,145
3
3
  hud/settings.py,sha256=disObWa-DgXzoDcCDp3y1dTPaNsbR0IvoMJL9Eg4zyo,3947
4
4
  hud/types.py,sha256=pmPj_8emfMIfEY_fRS8NgIJ56kCsolWSqQjyCzXDaGY,11072
5
- hud/version.py,sha256=flrgOWFXASZxwL4kHKZAFtTEJht-AlcjaxwuVVcQ9us,105
5
+ hud/version.py,sha256=MeC_5pci_uhPpMI4A7nAgn7EX9Ulrl1f6IMzn4YaOO8,105
6
6
  hud/agents/__init__.py,sha256=d-t5-PHHDoEFCuhv-IrpixCu7syvrjqSrDekQ0SdFiM,335
7
7
  hud/agents/base.py,sha256=_u1zR3gXzZ1RlTCUYdMcvgHqdJBC4-AB1lZt0yBx8lg,35406
8
8
  hud/agents/claude.py,sha256=TGhm5gE2ltINDAdEsDxKuT9iGMQ5G87R6kmabU3KPt8,16101
9
9
  hud/agents/grounded_openai.py,sha256=U-FHjB2Nh1_o0gmlxY5F17lWJ3oHsNRIB2a7z-IKB64,11231
10
10
  hud/agents/langchain.py,sha256=1EgCy8jfjunsWxlPC5XfvfLS6_XZVrIF1ZjtHcrvhYw,9584
11
- hud/agents/lite_llm.py,sha256=Nv2o541Q2MpaopR3P7ICoRzl0eHMLz0VzKctUrEU5nc,2232
11
+ hud/agents/lite_llm.py,sha256=_3wbUiYCp7q8Vyu9rhaoJDvmb_bsyUsLYWP3iQJ2bHo,2239
12
12
  hud/agents/openai.py,sha256=O1xV1h1l-W8lmnmXqTYr5CwnmnaniMqOxAZbl2CTTng,14576
13
- hud/agents/openai_chat_generic.py,sha256=NDk_Bht_ePf8gfW1nuvlM6CXcntcRaJw4QzzAmxA6yc,12068
13
+ hud/agents/openai_chat_generic.py,sha256=TrNG2qD6myOsmNjKZaWE4jz7xEs0NheFiwabNQvU2Os,12117
14
14
  hud/agents/misc/__init__.py,sha256=BYi4Ytp9b_vycpZFXnr5Oyw6ncKLNNGml8Jrb7bWUb4,136
15
15
  hud/agents/misc/response_agent.py,sha256=uMuRDkz5QgaMQliNzBRepond5sb7KyqIiKm3LstjVnw,3753
16
16
  hud/agents/tests/__init__.py,sha256=W-O-_4i34d9TTyEHV-O_q1Ai1gLhzwDaaPo02_TWQIY,34
@@ -19,7 +19,7 @@ hud/agents/tests/test_claude.py,sha256=0nZnfsbGoECvsLPdmaRnc9jVmrehVvc3kxeyiCQI2
19
19
  hud/agents/tests/test_client.py,sha256=uikgh6yhjPPX2RBU4XJQMz1mNox9uXjuwsP8t93id18,13337
20
20
  hud/agents/tests/test_grounded_openai_agent.py,sha256=VK8lUvHIjWicMX00VKPE-FZyjiJqTEhb80MuRRa9fVc,5437
21
21
  hud/agents/tests/test_openai.py,sha256=Npbdr0acgLExGLbrleXze-k3w9LHfmqzQjPk9TnjN68,7620
22
- hud/cli/__init__.py,sha256=urgZQiFle1i4InTOn6FmCK_KrpGYgkVppN3v2CM5YmQ,45409
22
+ hud/cli/__init__.py,sha256=v4602N3FWOXD2raK1h3APJXFshsCrJV8P3JFcK--IvM,45596
23
23
  hud/cli/__main__.py,sha256=fDH7XITyuDITwSDIVwRso06aouADO0CzTHKqp5TOwJE,143
24
24
  hud/cli/analyze.py,sha256=4u5oYfJMquOjT9PzzRTYVcTZDxDi0ilNP_g532_hpOU,14716
25
25
  hud/cli/build.py,sha256=h-4SAoe3j8Pth3mPYf26vh7q1Do5JADlvKKwkZrf2AU,19551
@@ -28,14 +28,14 @@ hud/cli/debug.py,sha256=jtFW8J5F_3rhq1Hf1_SkJ7aLS3wjnyIs_LsC8k5cnzc,14200
28
28
  hud/cli/dev.py,sha256=J0Q_ndHbQcXe64gMjXfqiccWYWpdiYWvTKbJhCAvlgI,30666
29
29
  hud/cli/eval.py,sha256=d1RouB3rxP3axca2sRblNWZMNvHGP1EugST5fCJ-7tc,25790
30
30
  hud/cli/get.py,sha256=sksKrdzBGZa7ZuSoQkc0haj-CvOGVSSikoVXeaUd3N4,6274
31
- hud/cli/init.py,sha256=2na19h0LxfGl35Z_uNOLNpjZrnhBkyltM-OOUkauopA,9793
31
+ hud/cli/init.py,sha256=YkWxkIDCnhnxGGpbm7IvYMcfDqWuO1X9wxDxE4k-9ew,9721
32
32
  hud/cli/list_func.py,sha256=EVi2Vc3Lb3glBNJxFx4MPnZknZ4xmuJz1OFg_dc8a_E,7177
33
33
  hud/cli/pull.py,sha256=XGEZ8n60tbzLQP_8d9h7XYmzyCW0e2-Rkr3_tLG7jvw,12449
34
34
  hud/cli/push.py,sha256=DsXFrMtWBZ-HUxt6VoLihpklk8JJIe2gy-GA4AMg6Kw,18805
35
35
  hud/cli/remove.py,sha256=8vGQyXDqgtjz85_vtusoIG8zurH4RHz6z8UMevQRYM4,6861
36
36
  hud/cli/flows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  hud/cli/flows/tasks.py,sha256=0vqTd-pAVEqXYZUp2hntSXMu9JuCJkKZzJQ3YZ1r3AE,14564
38
- hud/cli/rl/__init__.py,sha256=PuOOPr2Y7Xnn6e_DQHAZ_RzhfVOsKx_ikEFshQ5PeIg,5203
38
+ hud/cli/rl/__init__.py,sha256=q0GIYRARpNkY8o1Sza5CjQq6cks_1W_SjGprybaCxq4,5193
39
39
  hud/cli/rl/celebrate.py,sha256=trGEJn3xebexlHwFVKPJKhRujVVV8sy7TQTJvRd2p9A,5947
40
40
  hud/cli/rl/config.py,sha256=VZ8fiOI22Aw6YTRk7gj1ozpF-TU7NK8QWQgWFwMbNs0,3235
41
41
  hud/cli/rl/display.py,sha256=hqJVGmO9csYinladhZwjF-GMvppYWngxDHajTyIJ_gM,5214
@@ -218,10 +218,10 @@ hud/utils/tests/test_init.py,sha256=2QLQSGgyP9wJhOvPCusm_zjJad0qApOZi1BXpxcdHXQ,
218
218
  hud/utils/tests/test_mcp.py,sha256=0pUa16mL-bqbZDXp5NHBnt1gO5o10BOg7zTMHZ1DNPM,4023
219
219
  hud/utils/tests/test_progress.py,sha256=QSF7Kpi03Ff_l3mAeqW9qs1nhK50j9vBiSobZq7T4f4,7394
220
220
  hud/utils/tests/test_telemetry.py,sha256=5jl7bEx8C8b-FfFUko5pf4UY-mPOR-9HaeL98dGtVHM,2781
221
- hud/utils/tests/test_version.py,sha256=iyWudJ6arOycIPna5CRotVVD0ojbFV-Rv2IkuIHEGX0,160
221
+ hud/utils/tests/test_version.py,sha256=PPBYoVCSAD6h9KpdCQUjFDGiUa6nkyxB_bZDergGuvA,160
222
222
  hud/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
223
- hud_python-0.4.39.dist-info/METADATA,sha256=8CRV9IMrjYFDVtKuT0k3GAzEQRP0MXXvMMWdvsWLpbE,21900
224
- hud_python-0.4.39.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
225
- hud_python-0.4.39.dist-info/entry_points.txt,sha256=jJbodNFg1m0-CDofe5AHvB4zKBq7sSdP97-ohaQ3ae4,63
226
- hud_python-0.4.39.dist-info/licenses/LICENSE,sha256=yIzBheVUf86FC1bztAcr7RYWWNxyd3B-UJQ3uddg1HA,1078
227
- hud_python-0.4.39.dist-info/RECORD,,
223
+ hud_python-0.4.40.dist-info/METADATA,sha256=Px46NSbRJmX_1jMaYjoPSvkANXWYEz0jIRcJDf10-h8,21879
224
+ hud_python-0.4.40.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
225
+ hud_python-0.4.40.dist-info/entry_points.txt,sha256=jJbodNFg1m0-CDofe5AHvB4zKBq7sSdP97-ohaQ3ae4,63
226
+ hud_python-0.4.40.dist-info/licenses/LICENSE,sha256=yIzBheVUf86FC1bztAcr7RYWWNxyd3B-UJQ3uddg1HA,1078
227
+ hud_python-0.4.40.dist-info/RECORD,,