refactor: adopt AgentScope Msg.to_dict() format in AgentHub
- delete _dict_to_msg(), use Msg.from_dict() for history restoration - _save_tool_interactions() preserves full Block structure (type/id/name/input/output) - tool_use → role=assistant, tool_result → role=system - process_message() uses save-then-strip pattern for call_count >= 1 - remove sub-agent internal message save (call_sub_agent tool_result is sufficient) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Showing
1 changed file
with
39 additions
and
49 deletions
-
Please register or sign in to post a comment