Source:
10_conversation.py · 10-conversation.tsagent.conversation() returns a Conversation object that tracks message history across turns. Each .send() (or .stream()) call sees prior context automatically — you don’t manage the items array yourself.
Multi-turn
Streaming inside a conversation
conv.stream(input) works the same as agent.stream(input) — but the conversation accumulates the streamed turn into its history once .result() resolves.
Resetting
conv.clear() empties the history and starts fresh. There is no built-in persistence — serialize conv.get_items() / conv.getItems() yourself if you need to resume across processes.