Commit 540b0f02 by sunqi02

refactor: unify SessionMemory and AgentHub storage to AgentScope Msg.to_dict() format

- refactor SessionMemory.add() to use Msg.to_dict(), rename agent_code to name
- add remove_last() method for conditional cleanup
- update get_messages() summary format to use Msg.to_dict()
- adapt AgentHub to use Msg.from_dict() for history restoration
- remove redundant agent_id/intent fields and sub-agent internal message save
1 parent 76545309
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!