When fields are Pydantic objects, the chat_adapter was formatting them as python code, which led to some strange behavior (BootstrapFewShot would start off with JSON and then revert to unparseable python code after it started adding examples).
I'm not sure if I put the tests in the right spot, but it seemed convenient to leverage situations that were already being created. I also did dataclasses since they were right there.
When fields are Pydantic objects, the chat_adapter was formatting them as python code, which led to some strange behavior (BootstrapFewShot would start off with JSON and then revert to unparseable python code after it started adding examples).
I'm not sure if I put the tests in the right spot, but it seemed convenient to leverage situations that were already being created. I also did
dataclasses
since they were right there.