# Streaming calls to an established TaskingAI Assistant fail (MessageChunk)
## The problem
I was trying to make streaming calls to an already established Assistant with the TaskingAI Python SDK, but my code broke when handling the streamed chunks. I had defined my own MessageChunk class locally. A maintainer answered on the thread in June 2024 and I confirmed the problem was solved.
## The verified fix
The SDK cant return objects you defined yourself, so a locally defined MessageChunk will never match what the stream yields. Import it from the SDK instead: from taskingai.assistant import MessageChunk. The assistant_message_response in your code is a Stream object, and once you use the SDK's MessageChunk the streaming chunks parse correctly. The reporter confirmed this solved it.
Source: https://github.com/TaskingAI/TaskingAI/issues/85