You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: enhance completion providers with values and enum support
- Add CompletionProvider attribute support for values array and enum class
- Create ListCompletionProvider for simple list-based completions
- Create EnumCompletionProvider for enum-based completions
- Update Discoverer and ServerBuilder to auto-create provider instances
- Enhance serialization/deserialization for provider instances
- Add comprehensive test coverage for all completion provider types
Copy file name to clipboardExpand all lines: src/Attributes/CompletionProvider.php
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,15 @@
11
11
class CompletionProvider
12
12
{
13
13
/**
14
-
* @param class-string<CompletionProviderInterface> $providerClass FQCN of the completion provider class.
14
+
* @param class-string<CompletionProviderInterface>|CompletionProviderInterface|null $provider If a class-string, it will be resolved from the container at the point of use.
0 commit comments