Possible Bug with Recursive Schema in `Toolkit` or `JSONSchema`
I think i found a bug with
Can find the code for the
From the error it looks like the issue is with the Schema.optional in the
Toolkit or in JSONSchema. I have a very complicated recursive schema to represent a HAST and when calling it as an input to a tool, I get an error. With a minimal setup like so:Can find the code for the
GenericElement here -> https://effect.website/play/#902a397da008From the error it looks like the issue is with the Schema.optional in the
ElementBase but since everything else looks fine and its only OpenAI complaining about it I thought this might be something wrong with either the Toolkit or the JSONSchema implementations. Will add the output from JSONSchema.make in the thread: