Skip to content

[Platform] Make json schema generation extendable #1534

@valtzu

Description

@valtzu

Feature request

It'd be nice to have an optional symfony/validator integration that would transform Symfony validation constraints to JSON schema (for tool calls / structured output) + it would also check those with validator before invoking the tool. To make all this possible I think the json schema generation needs to be decoupled from With attribute and do something similar to https://github.com/nelmio/NelmioApiDocBundle/tree/5.x/src/ModelDescriber/Annotations.

In addition to using validation constraints, it'd still be possible to use #[With], the same way as you can use #[OA\Property] with nelmio api doc bundle in case it's not possible to infer the whole schema from validation constraints alone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PlatformIssues & PRs about the AI Platform componentRFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions