Skip to content

Commit

Permalink
feat(eval): add AgentConfig to disable function calling and enable ju…
Browse files Browse the repository at this point in the history
…pyter and browsing delegate config

Signed-off-by: Abhijeetsingh Meena <abhijeet040403@gmail.com>
  • Loading branch information
Ethan0456 committed Oct 30, 2024
1 parent 23a8027 commit 0374351
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions evaluation/discoverybench/run_infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
)
from openhands.controller.state.state import State
from openhands.core.config import (
AgentConfig,
AppConfig,
SandboxConfig,
get_llm_config_arg,
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit 0374351

Please sign in to comment.