streaming output of CrewAI on streamlit

Hi,

I have the following snippet

        result = crew.kickoff(inputs={
            'conversation_history': st.session_state.conversation_history,
            'user_input': user_input,
            'system_prompt': sys_prompt
        })

which works, however, I would like to stream the output progressively;

so I have added

    with st.chat_message("assistant"):
        st.write_stream(result)

but doesn’t work - mainly because the output is not a generator; I wonder if there are existing codes that can help me here.