From 0374351ddf66cd83dc233561285c6f19c4b855e0 Mon Sep 17 00:00:00 2001 From: Abhijeetsingh Meena Date: Wed, 30 Oct 2024 16:08:46 +0530 Subject: [PATCH] feat(eval): add AgentConfig to disable function calling and enable jupyter and browsing delegate config Signed-off-by: Abhijeetsingh Meena --- evaluation/discoverybench/run_infer.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/evaluation/discoverybench/run_infer.py b/evaluation/discoverybench/run_infer.py index 700cb3dcbcd..77d72d04775 100644 --- a/evaluation/discoverybench/run_infer.py +++ b/evaluation/discoverybench/run_infer.py @@ -22,6 +22,7 @@ ) from openhands.controller.state.state import State from openhands.core.config import ( + AgentConfig, AppConfig, SandboxConfig, get_llm_config_arg, @@ -75,6 +76,12 @@ def get_config( workspace_mount_path=None, ) config.set_llm_config(metadata.llm_config) + agent_config = AgentConfig( + function_calling=False, + codeact_enable_jupyter=True, + codeact_enable_browsing_delegate=True, + ) + config.set_agent_config(agent_config) return config