Getting Started
Step by step instructions on how to install NeuronAI in your application and create an Agent.
Requirements
Install
composer require inspector-apm/neuron-aiInspector
INSPECTOR_INGESTION_KEY=nwse877auxxxxxxxxxxxxxxxxxxxxxxxxxxxxCreate an Agent
namespace App\Neuron;
use NeuronAI\Agent;
use NeuronAI\Providers\Anthropic\Anthropic;
class MyAgent extends Agent
{
protected function provider(): AIProviderInterface
{
// return an AI provider (Anthropic, OpenAI, Ollama, Gemini, etc.)
return new Anthropic(
key: 'ANTHROPIC_API_KEY',
model: 'ANTHROPIC_MODEL',
);
}
}Talk to the Agent
Last updated