From 652b6c0b64987bb8db2803d45682fd32af3193e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=AE=AE=E0=AE=A9=E0=AF=8B=E0=AE=9C=E0=AF=8D=E0=AE=95?= =?UTF-8?q?=E0=AF=81=E0=AE=AE=E0=AE=BE=E0=AE=B0=E0=AF=8D=20=E0=AE=AA?= =?UTF-8?q?=E0=AE=B4=E0=AE=A9=E0=AE=BF=E0=AE=9A=E0=AF=8D=E0=AE=9A=E0=AE=BE?= =?UTF-8?q?=E0=AE=AE=E0=AE=BF?= Date: Tue, 14 Jan 2025 10:17:26 +0530 Subject: [PATCH] Use get --- openhands/agenthub/codeact_agent/function_calling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openhands/agenthub/codeact_agent/function_calling.py b/openhands/agenthub/codeact_agent/function_calling.py index 71a0e8a93969..6c74c30c20db 100644 --- a/openhands/agenthub/codeact_agent/function_calling.py +++ b/openhands/agenthub/codeact_agent/function_calling.py @@ -508,7 +508,7 @@ def response_to_actions(response: ModelResponse) -> list[Action]: f'TOOL CALL: str_replace_editor -> file_editor with code: {code}' ) - if arguments['command'] == 'view': + if arguments.get('command') == 'view': action = FileReadAction( path=arguments['path'], translated_ipython_code=code,