Arguments with recursive structures

I am trying to figure out how to handle recursive structures in the parameters for a function tool. In OpenAPI, this is generally a $ref to a $defs or /components/.... However, this does not seem to fit the schema for a parameter?

I know it is not needed in the far majority of cases but I am making a library and need to handle the case. So I can throw an exception when a cycle is detected but prefer to handle all cases even rare ones.

2 Likes

I don’t think it’s supported. I have the same issue and have been trying a lot of things to get it work. See this post Calling tool from assistant using structured output