Skip to content

ErrorException AIProviderInterface #3

@boonstoppel

Description

@boonstoppel

I tried a few of the examples provided here:
https://docs.neuron-ai.dev/agent

None of the examples actually work. For example:

Could not check compatibility between App\Agents\SEOAgent::provider(): App\Agents\AIProviderInterface and NeuronAI\Agent::provider(): NeuronAI\Providers\AIProviderInterface, because class App\Agents\AIProviderInterface is not available

  at app/Agents/SEOAgent.php:14
     10▕     public function __construct(
     11▕         protected object $user
     12▕     ) {}
     13▕
  ➜  14▕     public function provider(): AIProviderInterface
     15▕     {
     16▕         // return an AI provider instance (Anthropic, OpenAI, Mistral, etc.)
     17▕         return new Anthropic(
     18▕             key: config('anthropic.key'),


   Whoops\Exception\ErrorException

  Could not check compatibility between App\Agents\SEOAgent::provider(): App\Agents\AIProviderInterface and NeuronAI\Agent::provider(): NeuronAI\Providers\AIProviderInterface, because class App\Agents\AIProviderInterface is not available

  at app/Agents/SEOAgent.php:14
     10▕     public function __construct(
     11▕         protected object $user
     12▕     ) {}
     13▕
  ➜  14▕     public function provider(): AIProviderInterface
     15▕     {
     16▕         // return an AI provider instance (Anthropic, OpenAI, Mistral, etc.)
     17▕         return new Anthropic(
     18▕             key: config('anthropic.key'),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions