Skip to main content
agent.conversation() returns a Conversation object that tracks message history across turns. Each .send() (or .stream()) call sees prior context automatically, so 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, so serialize conv.get_items() / conv.getItems() yourself if you need to resume across processes.