mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
Move get_agent_obs_text function to browser utils and add return_all option (#9019)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -50,6 +50,7 @@ def parse_action(trace: list[TraceElement], action: Action) -> list[TraceElement
|
||||
event_dict = event_to_dict(action)
|
||||
args = event_dict.get('args', {})
|
||||
thought = args.pop('thought', None)
|
||||
|
||||
function = Function(name=action.action, arguments=args)
|
||||
if thought is not None:
|
||||
inv_trace.append(Message(role='assistant', content=thought))
|
||||
|
||||
Reference in New Issue
Block a user