Skip to content

how to use custom json schema for agent's output? #528

Closed
@x0day

Description

@x0day

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.

Metadata

Metadata

Assignees

Labels

questionQuestion about using the SDK

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions