mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
Add experiment for agent config (#9861)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user