Skip to content

Commit a22d037

Browse files
Add deprecation warning and module alias for generic_agent_hinter
1 parent 3e63394 commit a22d037

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from agentlab.agents.hint_use_agent import *
2+
import warnings
3+
import sys
4+
5+
warnings.warn(
6+
"generic_agent_hinter is renamed to hint_use_agent.",
7+
DeprecationWarning,
8+
stacklevel=2,
9+
)
10+
11+
# Create module alias - redirect old module to new module
12+
import agentlab.agents.hint_use_agent as new_module
13+
14+
sys.modules["agentlab.agents.generic_agent_hinter"] = new_module
15+
16+
# Re-export everything from the new location
17+
from agentlab.agents.hint_use_agent import *

0 commit comments

Comments
 (0)