Releases: neuron-core/neuron-ai
2.2.11
MySQL/PGSQL Toolkits security fix
The tools inside the database related toolkits now ask the model to provide a parametrized query, and a list of parameters so the query can be properly prepared to avoid sql injection.
Fix ObjectProperty constructor
The constructor has a nullable class property but the class_exists check do not accept null raising an exception. The property now check if the class property is properly filled before the calling class_exists.
Fix #300
Update GeminiEmbeddingsProvider
PR #303 from @zliebersbach
2.2.10
MySQL/PGSQL Toolkits security fix
The tool inside the database related toolkits now ask the model to provide a parametrized query, and a listo of parameters so the query can be properly prepared to avoid sql injection.
2.2.9
fix mcp streamable http transport
2.2.8
fix mcp streamable http transport
2.2.7
Typed Workflow State
This release supports the ability to use custom workflow state class, so you can work with strictly typed properties.
Create your state class extending the default WorkflowState:
use NeuronAI\Workflow\WorkflowState;
class CustomState extends WorkflowState
{
public string $custom = 'custom property';
}Use this custom state as input type of the nodes __invoke mthod:
class MyNode extends Node
{
public function __invoke(StartEvent $event, CustomState $state): StopEvent
{
echo $state->custom;
return new StopEvent();
}
}Finally start the Workflow passing the custom state instance. It will be propagated through the nodes:
$workflow = Workflow::make(new CustomState())->addNode($node);
$state = $workflow->start()->getResult();2.2.6
Merge branch 'main' into 2.x
2.2.5
monitoring
2.2.4
monitoring
2.2.3
fix tool max tries in structured output
2.2.2
optimize retrieval