Releases: inspector-apm/neuron-ai
Releases · inspector-apm/neuron-ai
2.2.10
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
2.2.1
fix openai tool call warning