Skip to content

Conversation

@amanjaiswal73892
Copy link
Collaborator

This pull request introduces a new "hint use agent" implementation for AgentLab, refactors the generic agent hinter module, and adds scripts for running generic and hinter agents. The changes improve agent modularity, configuration flexibility, and documentation, while also updating environment variable documentation. The most important changes are grouped below.

Added Hint-Use Agent

  • Added a new Hint-use GenericAgent implementation in src/agentlab/agents/hint_use_agent/generic_agent.py, featuring modular hint retrieval (docs, sparse/dense, database), agent configuration, and robust error handling. This agent is designed to be the baseline for ServiceNow papers and supports various hinting modes.
  • Refactored src/agentlab/agents/generic_agent_hinter/__init__.py to alias its submodules to the new hint_use_agent module and warn about the upcoming deprecation, improving code organization and forward compatibility.
  • Added a new src/agentlab/agents/hint_use_agent/__init__.py that exposes agent configurations and the new agent class, consolidating the baseline agent API.

Experiment scripts

  • Added experiments/generic/run_generic_agent.py and experiments/generic/run_generic_agent.sh for launching generic agents with configurable benchmarks, LLMs, and parallelization options. [1] [2]
  • Added experiments/hinter/run_hinter_agent.py and experiments/hinter/run_hinter_agent.sh for running hinter agents with flexible hinting parameters and parallelization, supporting both debug and relaunch modes. [1] [2]

Documentation and configuration

  • Updated README.md to fix the OPENAI_API_KEY typo and document new Ray dashboard environment variables, improving setup clarity for users.

ollmer and others added 17 commits September 24, 2025 19:28
* Make LLM retreival topic index selection more robust
#310)

* add new flag to skip hints with the current goal in the hint source traces
* rename generic_agent_hinter to hint_use_agent for clarity

* Add deprecation warning and module alias for generic_agent_hinter

* improve module aliasing for submodules

* Add todo rename agent name

* black

* bugfix: check for hint_db only when use_task_hint is true.

* fix: address missing initialization and correct args reference in choose_hints method

* black
* add env variable for ray port

* document env variables
hint_index_type: str = "sparse"
hint_query_type: str = "direct"
hint_index_path: str = "indexes/servicenow-docs-bm25"
hint_retriever_path: str = "google/embeddinggemma-300m"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is missing some params such as hint_retrieval_model, hint_level, hint db path.

@@ -0,0 +1,19 @@
import importlib, sys, warnings

OLD = __name__
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amanjaiswal73892 We can remove generic_agent_hinter files from this PR, no?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a temporary alias of hint_use_agent for backward compatibility. Some existing pickled traces may still use the old namespace.

Copy link
Collaborator

@hnekoeiq hnekoeiq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@amanjaiswal73892 amanjaiswal73892 merged commit 8d81f3c into main Nov 27, 2025
6 checks passed
@amanjaiswal73892 amanjaiswal73892 deleted the hint-use-agent branch November 27, 2025 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants