diff --git a/openhands/agenthub/planner_agent/prompt.py b/openhands/agenthub/planner_agent/prompt.py index d69b196172f2..30d50e3c856d 100644 --- a/openhands/agenthub/planner_agent/prompt.py +++ b/openhands/agenthub/planner_agent/prompt.py @@ -1,7 +1,7 @@ from openhands.controller.state.state import State from openhands.core.logger import openhands_logger as logger from openhands.core.schema import ActionType -from openhands.core.utils import json +from openhands.io import json from openhands.events.action import ( Action, NullAction, diff --git a/openhands/agenthub/planner_agent/response_parser.py b/openhands/agenthub/planner_agent/response_parser.py index 12068cd5b769..fb6721f248a5 100644 --- a/openhands/agenthub/planner_agent/response_parser.py +++ b/openhands/agenthub/planner_agent/response_parser.py @@ -1,5 +1,5 @@ from openhands.controller.action_parser import ResponseParser -from openhands.core.utils import json +from openhands.io import json from openhands.events.action import ( Action, ) diff --git a/openhands/condenser/prompts.py b/openhands/condenser/prompts.py index 644e3f8d78b5..0c0fe63e051e 100644 --- a/openhands/condenser/prompts.py +++ b/openhands/condenser/prompts.py @@ -6,10 +6,10 @@ LLMResponseError, ) from openhands.core.logger import openhands_logger as logger -from openhands.core.utils import json from openhands.events.action.agent import AgentSummarizeAction from openhands.events.event import EventSource from openhands.events.serialization.action import action_from_dict +from openhands.io import json WORD_LIMIT = 200 MESSAGE_SUMMARY_WARNING_FRAC = 0.75 diff --git a/openhands/events/stream.py b/openhands/events/stream.py index 4a4b212f3270..be9bacec6aa8 100644 --- a/openhands/events/stream.py +++ b/openhands/events/stream.py @@ -9,7 +9,6 @@ from typing import Callable, Iterable from openhands.core.logger import openhands_logger as logger -from openhands.core.utils import json from openhands.events.action.action import Action from openhands.events.event import Event, EventSource from openhands.events.serialization.event import event_from_dict, event_to_dict