Releases: neuron-core/neuron-ai
Releases · neuron-core/neuron-ai
3.0.5
3.0.4: Merge pull request #501 from bytestream/patch-2
Improve Embeddings Providers
Thank you to @bytestream for the contribution.
3.0.3: Merge pull request #494 from jamosaur/eloquent-history-selects
3.0.2
fix chat history
3.0.1
Eloquent workflow persistence
Thanks to @jamosaur for PR #497
Create a WorkflowInterrupt model:
class WorkflowInterrupt extends Model
{
protected $fillable = ['workflow_id', 'interrupt'];
}Use it with workflow:
use App\Models\WorkflowInterrupt;
use NeuronAI\Workflow\Persistence\EloquentPersistence;
// Creating a workflow
$workflow = WorkflowAgent(
persistence: new EloquentPersistence(WorkflowInterrupt::class)
);Migration script and code snippets in the documentation.
3.0.0
2.13.0
OpenSearch vector store
New OpenSearch vector store thanks to the contribution of @jamosaur with PR #489
use NeuronAI\RAG\RAG;
use NeuronAI\RAG\VectorStore\OpenSearchVectorStore;
use NeuronAI\RAG\VectorStore\VectorStoreInterface;
use OpenSearch\GuzzleClientFactory;
class MyChatBot extends RAG
{
...
protected function vectorStore(): VectorStoreInterface
{
$opensearch = new GuzzleClientFactory()->create([
'base_uri' => 'http://localhost:9200',
]);
return new OpenSearchVectorStore(
client: $opensearch,
index: 'neuron-ai',
);
}
}2.12.6
Tool Visibility helper
You can condition the visibility of tools based on custom rules. The Tool class provides you with the visible method to determine if the agent should even known the tool exists:
class YouTubeAgent extends Agent
{
...
protected function tools(): array
{
return [
GetTranscriptionTool::make('API_KEY')->visible(
auth()->user()->can(...)
),
];
}
}2.12.5
Fix tool events observer
2.12.4
Fix #469 thanks to @manuelkiessling PR #470