Jeremiah
threads
for the first time; existing ControlFlow users will find a variety of "out-of-the-box" entrypoints and a generally streamlined experience. Both sets of users will find their core APIs almost -- but not entirely -- untouched.
One of the major motivations here is to replatform from LangChain to our partners at PydanticAI. Almost all functionality is in place except for full streaming support, which is just landing in PAI this week (at least, in the manner that Marvin requires) and will be added to Marvin soon.
In the meantime it is probably time to start kicking the Marvin tires if you haven't already and please open an issue for anything you find!Brock
03/01/2025, 9:39 PMJeremiah
import marvin
marvin.run('say hi')
thread = marvin.thread.get_last_thread()
thread.get_messages()
get_last_thread()
is a convenience utility (while in a thread you can also use get_current_thread()
, and if you provided a thread object or id to mavin.run, you can simply re-hydrate that Thread
with that ID). Once you have the thread, you can access a lot of its history from the DB.
note this shows that right now we are being overly (maybe even needlessly) verbose in our "info messages"!Jeremiah
Brock
03/01/2025, 9:52 PM