-
-
Notifications
You must be signed in to change notification settings - Fork 116
Closed
Labels
Good first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)PlatformIssues & PRs about the AI Platform componentIssues & PRs about the AI Platform component
Description
Json Schema supports defining enums on properties, which is even supported with our #[With] attribute to be configured explicitly. But it would also be great to support this without attribute, when a Backed Enum is used as type:
enum Mode: string
{
case AND = 'and';
case OR = 'or';
}
class MySearchTool
{
public function __invoke(array $searchTerms, Mode $mode): array
{
// ...
}
}aszenz, OskarStark and valtzu
Metadata
Metadata
Assignees
Labels
Good first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)PlatformIssues & PRs about the AI Platform componentIssues & PRs about the AI Platform component