stream = client.run(agent, messages, stream=True) for chunk in stream: print(chunk)