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.

1 Like