Commit 1e62870
committed
refactor(agent-registry): address review — drop dead query path, fix tests, clarify gymnasium
Review follow-up:
- Remove the unreachable query filter from gym list agents (cli/agents.py): no QUERY flag is
registered for the command, so the branch could never run; drop it (and _fuzzy_matches and the
mock-only test_query_filters that masked it). search stays benchmarks-only.
- test_agent_entry_is_hashable: replace the trivially-true `... or True` assertion with a real
check on AgentEntry.variants.
- Docstring: stop citing gymnasium as a Pattern A (composable) example — gymnasium-style agents
ship their own env and classify as self-contained (Pattern B), matching cmunley1s review point.
Signed-off-by: Wojciech Prazuch <wprazuch@nvidia.com>1 parent 666edf9 commit 1e62870
4 files changed
Lines changed: 7 additions & 29 deletions
File tree
- nemo_gym
- cli
- tests/unit_tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 29 | | |
36 | 30 | | |
37 | 31 | | |
| |||
49 | 43 | | |
50 | 44 | | |
51 | 45 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 46 | | |
59 | 47 | | |
60 | 48 | | |
| |||
70 | 58 | | |
71 | 59 | | |
72 | 60 | | |
73 | | - | |
| 61 | + | |
74 | 62 | | |
75 | 63 | | |
76 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
223 | 222 | | |
224 | 223 | | |
225 | 224 | | |
226 | | - | |
| 225 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
0 commit comments