feat: enhance approval serialization and implement agent notification for new task comments
This commit is contained in:
@@ -42,7 +42,9 @@ def _approval_updated_at(approval: Approval) -> datetime:
|
||||
|
||||
|
||||
def _serialize_approval(approval: Approval) -> dict[str, object]:
|
||||
return ApprovalRead.model_validate(approval, from_attributes=True).model_dump()
|
||||
return ApprovalRead.model_validate(
|
||||
approval, from_attributes=True
|
||||
).model_dump(mode="json")
|
||||
|
||||
|
||||
def _fetch_approval_events(
|
||||
|
||||
Reference in New Issue
Block a user