Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple solutions #108

Open
roxblnfk opened this issue Apr 29, 2024 · 1 comment
Open

Support multiple solutions #108

roxblnfk opened this issue Apr 29, 2024 · 1 comment

Comments

@roxblnfk
Copy link
Member

roxblnfk commented Apr 29, 2024

  • Render multiple solutions in UI
  • Add Solution Provider Registry like this:
    interface SolutionProviderRegisrty {
       /**
        * @param callable(\Throwable): SolutionInterface|\Stringable|string $provider
        */
       public function register($provider): void;
    }
    // todo
    interface SolutionInterface {}
  • 💡 Render exception class description #104 might be implemented like a SolutionProvider

In this case the user can implement its own AI based solution provider, support custom attributes or interfaces

@vjik
Copy link
Member

vjik commented Apr 30, 2024

The interface should probably also provide information about which exceptions it is suitable for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants