refactor: replace 'convo' naming with 'conversation' (#10473)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Rohit Malhotra
2025-08-18 15:10:32 -04:00
committed by GitHub
parent baf2cc5c7e
commit 3660933d59
21 changed files with 109 additions and 99 deletions

View File

@@ -36,7 +36,7 @@ from openhands.mcp import add_mcp_tools_to_agent
from openhands.memory.memory import Memory
from openhands.runtime.base import Runtime
from openhands.utils.async_utils import call_async_from_sync
from openhands.utils.utils import create_registry_and_convo_stats
from openhands.utils.utils import create_registry_and_conversation_stats
class FakeUserResponseFunc(Protocol):
@@ -96,7 +96,7 @@ async def run_controller(
"""
sid = sid or generate_sid(config)
llm_registry, convo_stats, config = create_registry_and_convo_stats(
llm_registry, conversation_stats, config = create_registry_and_conversation_stats(
config,
sid,
None,
@@ -163,7 +163,7 @@ async def run_controller(
)
controller, initial_state = create_controller(
agent, runtime, config, convo_stats, replay_events=replay_events
agent, runtime, config, conversation_stats, replay_events=replay_events
)
assert isinstance(initial_user_action, Action), (

View File

@@ -218,7 +218,7 @@ def create_controller(
agent: Agent,
runtime: Runtime,
config: OpenHandsConfig,
convo_stats: ConversationStats,
conversation_stats: ConversationStats,
headless_mode: bool = True,
replay_events: list[Event] | None = None,
) -> tuple[AgentController, State | None]:
@@ -236,7 +236,7 @@ def create_controller(
controller = AgentController(
agent=agent,
convo_stats=convo_stats,
conversation_stats=conversation_stats,
iteration_delta=config.max_iterations,
budget_per_task_delta=config.max_budget_per_task,
agent_to_llm_config=config.get_agent_to_llm_config_map(),