Skip to content

Releases: neuron-core/neuron-ai

3.1.5

10 Mar 17:56

Choose a tag to compare

fix gemini usage reporting on streaming

3.1.4

10 Mar 16:34

Choose a tag to compare

Fix Gemini usage reporting when streaming. Fix #511

3.1.3

10 Mar 10:05

Choose a tag to compare

Make the MySQLSelectTool prompts stronger.

3.1.2

07 Mar 16:53

Choose a tag to compare

Fix filesystem toolkit

3.1.1

06 Mar 14:51

Choose a tag to compare

file write/edit/delete in filesystem toolkit

3.1.0

06 Mar 13:24

Choose a tag to compare

Tool approval callback receives an instance of tool:

new ToolApproval(
    tools: [
        // Enable tool approval based on custom rules
        BuyTicketTool::class => function (ToolInterface $tool): bool {
            return $tool->getInput('amount') > 100;
        }
    ]
)

3.0.10

03 Mar 18:12

Choose a tag to compare

Retrieval as a tool

Built-in tool to build agents with on-demand RAG (Retrieval Augmented Generation)
capabilities instead of the authomatic context injection provided by the RAG component.

use NeuronAI\Tools\Toolkits\RetrievalTool;
use NeuronAI\RAG\Retrieval\SimilarityRetrieval;

class AgenticRAG extends Agent
{
    protected function provider(): AIProviderInterface
    {...}
    
    protected function instructions(): string
    {...}
    
    protected function tools(): array
    {
        return [
            RetrievalTool::make(
                new SimilarityRetrieval(
                    $this->vectorStore(), 
                    $this->embeddings()
                )
            ),
        ];
    }
    
    protected function vectorStore(): VectorStoreInterface
    {
        return new FileVectorStore(__DIR__);
    }
    
    protected function embeddings(): EmbeddingsProviderInterface
    {
        return new OllamaEmbeddingsProvider(
            model: 'OLLAMA_EMBEDDINGS_MODEL'
        );
    }
}

Learn more on the documentation.

3.0.9: Merge pull request #507 from joecharm/Gemini-Vertex-Global

03 Mar 15:41
2118ede

Choose a tag to compare

3.0.8

03 Mar 10:23

Choose a tag to compare

Fix http client baseUri

Inspired by @ottoszika with PR #506

3.0.7

02 Mar 14:29

Choose a tag to compare

fix openai tool call without arguments. #498