Understanding Threads
A thread in Marvin represents a conversation context that can span multiple interactions. Each thread:- Maintains its own conversation history
- Can be persisted to a database
- Can be referenced across different parts of your application
- Supports attaching memories for long-term information storage
Creating and Using Threads
Basic Thread Creation
The simplest way to create a thread is to instantiate theThread
class: