Closed
Description
Currently, the output_type parameter of Agent can only pass pydantic's Model to assist in generating json schema.
but pydantic has some limitations when generating json schema for LLM, such as multi-layer $defs
references and Optional conversions. and this will affect the performance of some third-party LLMs.