Skip to content

Conversation

@OskarStark
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
Docs? no
Issues Fix #492
License MIT

Add automatic enum validation for PHP's backed enum types (string and int) without requiring the #[With] attribute. This enables tool methods to use enums as parameters with automatic JSON schema generation that includes the enum values for validation.

@carsonbot carsonbot added Feature New feature Platform Issues & PRs about the AI Platform component Status: Needs Review labels Sep 8, 2025
@chr-hertel
Copy link
Member

Thank you @OskarStark.

@chr-hertel chr-hertel merged commit 4169efe into symfony:main Sep 8, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature Platform Issues & PRs about the AI Platform component Status: Reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Platform] Backed Enums Support for Tool Arguments and Structured Output

3 participants