SupportAgent
LLM call620.00msTool: searchOrders180.00msselect * from `orders` where `customer_id` = ?92.00msLLM call1740.00msTool: sendReply240.00ms
Neuron AI is the first agentic framework of the PHP ecosystem. When your agent reaches production, Inspector shows you every step it takes.
Build an agent by extending a single class that keeps its provider, instructions and tools together. It runs anywhere in your application, and you can share it as a package.
class CustomerServiceAgent extends Agent
{
protected function provider(): AIProviderInterface
{
// you can also use OpenAI, Gemini, Ollama, AWS Bedrock, Azure, and others
return new Anthropic('ANTHROPIC_API_KEY', 'ANTHROPIC_MODEL');
}
public function instructions(): SystemMessage
{
return new SystemMessage(
'You are a helpful customer service assistant. ' .
'Provide clear, friendly, and accurate responses.'
);
}
public function tools(): array
{
return [
CalculatorToolkit::make(),
];
}
}
$response = CustomerServiceAgent::make()
->chat(new UserMessage('Give me the daily average of sales in the last 30 days!'))
->getMessage();The framework covers the parts you need to go from a prototype to production.
An agent makes many LLM and tool calls, which are hard to follow as it grows. Inspector records each run, so you can see what your agent did and how long each step took.
SupportAgent
LLM call620.00msTool: searchOrders180.00msselect * from `orders` where `customer_id` = ?92.00msLLM call1740.00msTool: sendReply240.00msAdd the framework with Composer.
composer require neuron-core/neuron-aiPaste the key from your Inspector dashboard into the environment file. Agent runs start appearing in your dashboard.
INSPECTOR_INGESTION_KEY=your-ingestion-keyInject the observer in the constructor of your agent.
use NeuronAI\Agent\Agent;
use NeuronAI\Observability\InspectorObserver;
class MyAgent extends Agent
{
public function __construct()
{
parent::__construct();
$this->observe(InspectorObserver::instance(
key: 'INSPECTOR_INGESTION_KEY',
autoFlush: true,
));
}
}Install the package, connect your agent, and let it find the next problem before your customers do.
Free up to 30K transactions a month. No credit card.