Skip to content

v0.10.0: memory tools for Neuron AI agents

Choose a tag to compare

@skybleak333 skybleak333 released this 12 Nov 05:17
· 2 commits to main since this release

Memory tools for Neuron AI agents.

HindsightToolkit gives a Neuron agent recall_memory, retain_memory and reflect_memory on one Hindsight bank, and adds guidelines to the system prompt: recall before answering questions about the past, store lasting facts, skip small talk.

use Fedoseev\Hindsight\Neuron\HindsightToolkit;
use NeuronAI\Chat\Messages\UserMessage;

$agent = SupportAgent::make()
    ->setThreadId($threadId)
    ->addTool(new HindsightToolkit($hindsight, "user-{$user->id}"));

$agent->chat(new UserMessage('When does my plan renew?'));

Leave reflect out with ->exclude([Reflect::class]) when your Hindsight server has no LLM. The tools are also usable on their own from Fedoseev\Hindsight\Neuron\Tools, with the same texts and defaults as the Laravel AI SDK and Symfony AI tools. Tested with neuron-core/neuron-ai 4.1.0 and 4.1.24, including an agent that calls recall_memory and answers with the result.

Changelog