Agent
Easily implement LLM interactions extending the basic Agent class.
./vendor/bin/neuron make:agent App\\Neuron\\YouTubeAgent.\vendor\bin\neuron make:agent App\Neuron\YouTubeAgent<?php
namespace App\Neuron;
use NeuronAI\Agent;
use NeuronAI\SystemPrompt;
use NeuronAI\Providers\AIProviderInterface;
class YouTubeAgent extends Agent
{
protected function provider(): AIProviderInterface
{
// return an instance of Anthropic, OpenAI, Gemini, Ollama, etc...
}
public function instructions(): string
{
return (string) new SystemPrompt(
background: ["You are a friendly AI Agent created with Neuron framework."],
);
}
}Monitoring & Debugging
AI Provider
System instructions
Talk to the YouTubeAgent
Message
Fluent Agent Definition
Last updated