Add experiment for agent config (#9861)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Rohit Malhotra
2025-07-29 13:56:28 -04:00
committed by GitHub
parent 5553584056
commit 5b13cfc2a0
2 changed files with 16 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
import os
from openhands.core.config.agent_config import AgentConfig
from openhands.core.logger import openhands_logger as logger
from openhands.server.session.conversation_init_data import ConversationInitData
from openhands.utils.import_utils import get_impl
@@ -11,6 +13,15 @@ class ExperimentManager:
) -> ConversationInitData:
return conversation_settings
@staticmethod
def run_agent_config_variant_test(
user_id: str, conversation_id: str, agent_config: AgentConfig
) -> AgentConfig:
logger.debug(
f'Running agent config variant test for user_id={user_id}, conversation_id={conversation_id}'
)
return agent_config
experiment_manager_cls = os.environ.get(
'OPENHANDS_EXPERIMENT_MANAGER_CLS',