Releases: neuron-core/neuron-ai
Releases · neuron-core/neuron-ai
3.1.5
fix gemini usage reporting on streaming
3.1.4
3.1.3
Make the MySQLSelectTool prompts stronger.
3.1.2
Fix filesystem toolkit
3.1.1
file write/edit/delete in filesystem toolkit
3.1.0
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
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
3.0.8
Fix http client baseUri
Inspired by @ottoszika with PR #506