File tree Expand file tree Collapse file tree 1 file changed +41
-7
lines changed
Expand file tree Collapse file tree 1 file changed +41
-7
lines changed Original file line number Diff line number Diff line change 1111tool-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
2221from reward_kit import (
22+ __all__ ,
23+ __version__ ,
2324 adapters ,
2425 agent ,
2526 auth ,
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 )
You can’t perform that action at this time.
0 commit comments