-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Description
Description
When using field_meta it doesn't uses alias at runtime.
When not provided field_meta is always added at serialization
I think by_alias=True is missing when using model_dump
Step to reproduce
With field_meta
connection.sessionUpdate(
SessionNotification(
sessionId="random_id",
update=AgentMessageChunk(
sessionUpdate="agent_message_chunk",
content=TextContentBlock(type="text", text="demo"),
field_meta={"foo": "bar"}
),
)
)field_meta is not included in the json
Without field_meta
connection.sessionUpdate(
SessionNotification(
sessionId="random_id",
update=AgentMessageChunk(
sessionUpdate="agent_message_chunk",
content=TextContentBlock(type="text", text="demo"),
),
)
)field_meta is always null
qtrrb and PsiACE
Metadata
Metadata
Assignees
Labels
No labels