-
Notifications
You must be signed in to change notification settings - Fork 116
Closed
Description
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
Labels
No labels