patterns-ai-core / langchainrb

Build LLM-powered applications in Ruby
https://rubydoc.info/gems/langchainrb
MIT License
1.18k stars 156 forks source link

Conceal `Langchain::Thread` away when creating or interacting with `Langchain::Assistant`. #640

Closed andreibondarev closed 1 month ago

andreibondarev commented 1 month ago

Description

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