Skip to content

Commit d38ceba

Browse files
committed
Fix Message.encode() to serialize using field aliases
1 parent 360c4ae commit d38ceba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coagent/core/messages.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def encode(
3232
content = self.model_dump_json(
3333
exclude={"reply", "extensions"},
3434
exclude_defaults=exclude_defaults,
35+
by_alias=True,
3536
)
3637
if content == "{}":
3738
content = ""

0 commit comments

Comments
 (0)