neuron-ai  by inspector-apm

PHP Agent Development Kit for building LLM applications

created 5 months ago
895 stars

Top 41.3% on sourcepulse

GitHubView on GitHub
Project Summary

This PHP framework enables developers to build customizable, production-ready LLM applications. It targets PHP developers looking to integrate LLM capabilities into their projects, offering a structured approach to creating agents, managing memory, and implementing complex patterns like RAG and tool usage.

How It Works

Neuron AI provides an extensible Agent class that abstracts LLM interactions, memory management, and tool execution. Developers define an AIProviderInterface to switch between LLM backends (Anthropic, Ollama, OpenAI, Gemini) and use a SystemPrompt class to construct detailed instructions for the LLM. Tools can be defined with callable functions and properties, or integrated via an MCP server connector, allowing agents to perform external tasks. For RAG, a separate RAG class is available, requiring configuration of embeddings and vector stores.

Quick Start & Requirements

Highlighted Details

  • Supports multiple LLM providers (Anthropic, Ollama, OpenAI, Gemini) with easy switching.
  • Enables custom tool integration and external tool discovery via MCP server.
  • Facilitates RAG implementation with support for various vector stores and embeddings providers.
  • Offers structured output capabilities for data extraction and integration.

Maintenance & Community

  • Community support via the Inspector Forum.
  • Contribution guidelines are available.

Licensing & Compatibility

  • MIT License.
  • Permissive license suitable for commercial use and integration into closed-source projects.

Limitations & Caveats

The framework is presented as a development kit, and specific implementations for retrieving YouTube transcriptions or connecting to MCP servers are shown as examples requiring developer implementation.

Health Check
Last commit

4 days ago

Responsiveness

1 day

Pull Requests (30d)
9
Issues (30d)
18
Star History
472 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.