Skip to content

Releases: inspector-apm/neuron-ai

2.2.10

20 Sep 23:17
Compare
Choose a tag to compare

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

19 Sep 17:12
Compare
Choose a tag to compare
fix mcp streamable http transport

2.2.8

19 Sep 15:22
Compare
Choose a tag to compare
fix mcp streamable http transport

2.2.7

17 Sep 07:54
Compare
Choose a tag to compare

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

16 Sep 20:36
Compare
Choose a tag to compare
Merge branch 'main' into 2.x

2.2.5

16 Sep 20:05
Compare
Choose a tag to compare
monitoring

2.2.4

16 Sep 19:20
Compare
Choose a tag to compare
monitoring

2.2.3

13 Sep 10:13
Compare
Choose a tag to compare
fix tool max tries in structured output

2.2.2

12 Sep 16:12
Compare
Choose a tag to compare
optimize retrieval

2.2.1

12 Sep 11:02
Compare
Choose a tag to compare
fix openai tool call warning