mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-18 20:14:27 -05:00
Load and Save state in AgentChat (#4436)
1. convert dataclass types to pydantic basemodel 2. add save_state and load_state for ChatAgent 3. state types for AgentChat --------- Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
This commit is contained in:
@@ -33,7 +33,7 @@ class LLMAgent(RoutedAgent):
|
||||
|
||||
@property
|
||||
def _fixed_message_history_type(self) -> List[SystemMessage]:
|
||||
return [SystemMessage(msg.content) for msg in self._chat_history]
|
||||
return [SystemMessage(content=msg.content) for msg in self._chat_history]
|
||||
|
||||
|
||||
@default_subscription
|
||||
|
||||
Reference in New Issue
Block a user