-
Couldn't load subscription status.
- Fork 91
Rename generic agent hinter to hint_use_agent #311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
amanjaiswal73892
merged 8 commits into
generic_agent_hinter
from
rename-generic-agent-hinter
Oct 27, 2025
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3e63394
rename generic_agent_hinter to hint_use_agent for clarity
amanjaiswal73892 a22d037
Add deprecation warning and module alias for generic_agent_hinter
amanjaiswal73892 02da2db
improve module aliasing for submodules
amanjaiswal73892 5eb0762
Add todo rename agent name
amanjaiswal73892 e2caf09
black
amanjaiswal73892 1e56d49
bugfix: check for hint_db only when use_task_hint is true.
amanjaiswal73892 85916ec
fix: address missing initialization and correct args reference in cho…
amanjaiswal73892 1a39e39
black
amanjaiswal73892 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,54 +1,19 @@ | ||
| """ | ||
| Baseline agent for all ServiceNow papers | ||
| import importlib, sys, warnings | ||
|
|
||
| This module contains the GenericAgent class, which is the baseline agent for all ServiceNow papers. \ | ||
| It is a simple agent that can be ran OOB on all BrowserGym environments. It is also shipped with \ | ||
| a few configurations that can be used to run it on different environments. | ||
| """ | ||
| OLD = __name__ | ||
| NEW = "agentlab.agents.hint_use_agent" | ||
| SUBS = ("agent_configs", "generic_agent_prompt", "generic_agent", "tmlr_config") | ||
|
|
||
| from .agent_configs import ( | ||
| AGENT_3_5, | ||
| AGENT_8B, | ||
| AGENT_37_SONNET, | ||
| AGENT_CLAUDE_SONNET_35, | ||
| AGENT_CLAUDE_SONNET_35_VISION, | ||
| AGENT_CUSTOM, | ||
| AGENT_GPT5_MINI, | ||
| AGENT_GPT5_NANO, | ||
| AGENT_LLAMA3_70B, | ||
| AGENT_LLAMA4_17B_INSTRUCT, | ||
| AGENT_LLAMA31_70B, | ||
| CHAT_MODEL_ARGS_DICT, | ||
| RANDOM_SEARCH_AGENT, | ||
| AGENT_4o, | ||
| AGENT_4o_MINI, | ||
| AGENT_4o_MINI_VISION, | ||
| AGENT_4o_VISION, | ||
| AGENT_o1_MINI, | ||
| AGENT_o3_MINI, | ||
| FLAGS_GPT_4o, | ||
| GenericAgentArgs, | ||
| warnings.warn( | ||
| f"{OLD} is renamed to {NEW}. {OLD} will be removed in future", | ||
| DeprecationWarning, | ||
| stacklevel=2, | ||
| ) | ||
| from .generic_agent import GenericAgent, GenericAgentArgs | ||
|
|
||
| __all__ = [ | ||
| "AGENT_3_5", | ||
| "AGENT_4o", | ||
| "AGENT_4o_MINI", | ||
| "AGENT_4o_VISION", | ||
| "AGENT_o3_MINI", | ||
| "AGENT_o1_MINI", | ||
| "AGENT_LLAMA4_17B_INSTRUCT", | ||
| "AGENT_LLAMA3_70B", | ||
| "AGENT_LLAMA31_70B", | ||
| "AGENT_8B", | ||
| "RANDOM_SEARCH_AGENT", | ||
| "AGENT_CUSTOM", | ||
| "AGENT_CLAUDE_SONNET_35", | ||
| "AGENT_37_SONNET", | ||
| "AGENT_4o_VISION", | ||
| "AGENT_4o_MINI_VISION", | ||
| "AGENT_CLAUDE_SONNET_35_VISION", | ||
| "AGENT_GPT5_MINI", | ||
| "AGENT_GPT5_NANO", | ||
| ] | ||
| # Alias the top-level | ||
| new_mod = importlib.import_module(NEW) | ||
| sys.modules[OLD] = new_mod | ||
|
|
||
| # Alias known submodules | ||
| for sub in SUBS: | ||
| sys.modules[f"{OLD}.{sub}"] = importlib.import_module(f"{NEW}.{sub}") | ||
|
Comment on lines
+13
to
+19
This comment was marked as off-topic.
Sorry, something went wrong. |
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| """ | ||
| Baseline agent for all ServiceNow papers | ||
|
|
||
| This module contains the GenericAgent class, which is the baseline agent for all ServiceNow papers. \ | ||
| It is a simple agent that can be ran OOB on all BrowserGym environments. It is also shipped with \ | ||
| a few configurations that can be used to run it on different environments. | ||
| """ | ||
|
|
||
| from .agent_configs import ( | ||
| AGENT_3_5, | ||
| AGENT_8B, | ||
| AGENT_37_SONNET, | ||
| AGENT_CLAUDE_SONNET_35, | ||
| AGENT_CLAUDE_SONNET_35_VISION, | ||
| AGENT_CUSTOM, | ||
| AGENT_GPT5_MINI, | ||
| AGENT_GPT5_NANO, | ||
| AGENT_LLAMA3_70B, | ||
| AGENT_LLAMA4_17B_INSTRUCT, | ||
| AGENT_LLAMA31_70B, | ||
| CHAT_MODEL_ARGS_DICT, | ||
| RANDOM_SEARCH_AGENT, | ||
| AGENT_4o, | ||
| AGENT_4o_MINI, | ||
| AGENT_4o_MINI_VISION, | ||
| AGENT_4o_VISION, | ||
| AGENT_o1_MINI, | ||
| AGENT_o3_MINI, | ||
| FLAGS_GPT_4o, | ||
| GenericAgentArgs, | ||
| ) | ||
| from .generic_agent import GenericAgent, GenericAgentArgs | ||
|
|
||
| __all__ = [ | ||
| "AGENT_3_5", | ||
| "AGENT_4o", | ||
| "AGENT_4o_MINI", | ||
| "AGENT_4o_VISION", | ||
| "AGENT_o3_MINI", | ||
| "AGENT_o1_MINI", | ||
| "AGENT_LLAMA4_17B_INSTRUCT", | ||
| "AGENT_LLAMA3_70B", | ||
| "AGENT_LLAMA31_70B", | ||
| "AGENT_8B", | ||
| "RANDOM_SEARCH_AGENT", | ||
| "AGENT_CUSTOM", | ||
| "AGENT_CLAUDE_SONNET_35", | ||
| "AGENT_37_SONNET", | ||
| "AGENT_4o_VISION", | ||
| "AGENT_4o_MINI_VISION", | ||
| "AGENT_CLAUDE_SONNET_35_VISION", | ||
| "AGENT_GPT5_MINI", | ||
| "AGENT_GPT5_NANO", | ||
| ] |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecation notice not logged
Tell me more
What is the issue?
The code uses a warning to log the deprecation notice, which may not be captured in standard logging systems.
Why this matters
Warnings might be suppressed or not visible in production environments, potentially leading to missed deprecation notices.
Suggested change ∙ Feature Preview
Add a logging statement in addition to the warning:
Provide feedback to improve future suggestions
💬 Looking for more details? Reply to this comment to chat with Korbit.