mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 17:56:23 +02:00
fix UserWarning: Pydantic serializer warning Expected str but got dict
This commit is contained in:
parent
49e7d7eaea
commit
6b52ee3e7c
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ class Message(BaseModel):
|
|||
return any_to_str_set(send_to if send_to else {MESSAGE_ROUTE_TO_ALL})
|
||||
|
||||
@field_serializer("instruct_content", mode="plain")
|
||||
def ser_instruct_content(self, ic: BaseModel) -> Union[str, None]:
|
||||
def ser_instruct_content(self, ic: BaseModel) -> Union[dict, None]:
|
||||
ic_dict = None
|
||||
if ic:
|
||||
# compatible with custom-defined ActionOutput
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue