Skip to content

Commit bbdb427

Browse files
committed
Fix reward_protocol submodule imports
1 parent b3ccab9 commit bbdb427

File tree

1 file changed

+41
-7
lines changed

1 file changed

+41
-7
lines changed

reward_protocol/__init__.py

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@
1111
tool-augmented models using self-contained task bundles.
1212
"""
1313

14-
# Re-export everything from reward_kit
15-
from reward_kit import *
16-
from reward_kit import __version__
17-
18-
# Make sure all public symbols are available
19-
from reward_kit import __all__
14+
# Map reward_protocol submodules to the underlying reward_kit modules
15+
import sys
2016

2117
# Additional convenience imports for common submodules
18+
# Make sure all public symbols are available
19+
# Re-export everything from reward_kit
20+
from reward_kit import * # noqa: F401,F403
2221
from reward_kit import (
22+
__all__,
23+
__version__,
2324
adapters,
2425
agent,
2526
auth,
@@ -47,4 +48,37 @@
4748
server,
4849
typed_interface,
4950
utils,
50-
)
51+
)
52+
53+
_SUBMODULES = [
54+
"adapters",
55+
"agent",
56+
"auth",
57+
"cli",
58+
"cli_commands",
59+
"common_utils",
60+
"config",
61+
"datasets",
62+
"evaluation",
63+
"execution",
64+
"gcp_tools",
65+
"generation",
66+
"generic_server",
67+
"integrations",
68+
"mcp",
69+
"mcp_agent",
70+
"models",
71+
"packaging",
72+
"platform_api",
73+
"playback_policy",
74+
"resources",
75+
"reward_function",
76+
"rewards",
77+
"rl_processing",
78+
"server",
79+
"typed_interface",
80+
"utils",
81+
]
82+
83+
for _name in _SUBMODULES:
84+
sys.modules[f"{__name__}.{_name}"] = getattr(sys.modules["reward_kit"], _name)

0 commit comments

Comments
 (0)