Add more extensive typing to openhands/core directory (#7728)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Graham Neubig
2025-04-08 17:38:44 -04:00
committed by GitHub
parent d48e2a4cf1
commit e698a393b2
9 changed files with 48 additions and 41 deletions

View File

@@ -12,14 +12,14 @@ async def run_agent_until_done(
runtime: Runtime,
memory: Memory,
end_states: list[AgentState],
):
) -> None:
"""
run_agent_until_done takes a controller and a runtime, and will run
the agent until it reaches a terminal state.
Note that runtime must be connected before being passed in here.
"""
def status_callback(msg_type, msg_id, msg):
def status_callback(msg_type: str, msg_id: str, msg: str) -> None:
if msg_type == 'error':
logger.error(msg)
if controller: