ValidationError
when using chat history that contains tool message
#266
Labels
Milestone
ValidationError
when using chat history that contains tool message
#266
Description
Run the following code:
And you will get the following error:
The code above is just a slight modification of code in this file
mirascope/docs/concepts/tools_(function_calling).md
Lines 110 to 174 in b643951
The change I did was about creating a new instance of
Forecast
instead of reusing the old one. The reason I created a new instance is because I like to not mutate the state of an object after it's created.Here's the file diff: https://diffcheck.io/y-m0-U_Zn_mDOt7MjX
Python, Mirascope & OS Versions, related packages (not required)
The text was updated successfully, but these errors were encountered: