When user is instantiating Langchain::Assistant, they're explicitly passing thread: Langchain::Thread.new in. This detail can be concealed away, it's an implementation detail.
Tasks
[x] Make thread: nil optional in the initializer.
[x] Create a new thread if no thread was passed in:
Description
When user is instantiating
Langchain::Assistant
, they're explicitly passingthread: Langchain::Thread.new
in. This detail can be concealed away, it's an implementation detail.Tasks
thread: nil
optional in the initializer.