I am having azure bot which forwards that to aendpoint which is my backend code for the agent .Now while i am chatting from copilot agent UI .Im trying to deserialize the request payload json into activity object I am getting validation error .Since the Coploit payload and teams payload differ a bit
Code :
activity = Activity().deserialize(body)
Error:
[ERROR]: Validation error for Activity: 1 validation error for ValidatorCallable 2025-12-09 13:11:15 type 2025-12-09 13:11:15 Field required [type=missing, input_value={}, input_type=dict] 2025-12-09 13:11:15 For further information visit https://errors.pydantic.dev/2.11/v/missing (microsoft_agents.activity.activity:230)