eino icon indicating copy to clipboard operation
eino copied to clipboard

Agent memory

Open epuerta9 opened this issue 8 months ago • 1 comments

Is your feature request related to a problem? Please describe. Would like to have a hook or call back I can add to a react agent that lets me choose how and where I want to store agent memory.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like

The solution should be a callback and maybe an interface for users to implement their own with maybe one off the shelf with sensible defaults.

A clear and concise description of what you want to happen.

I would like to be able to have persistent long term memory as part of the react agent build

Describe alternatives you've considered

considered building my own react agent node graph on my own and hooking into the statepre and post handlers

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

epuerta9 avatar May 07 '25 20:05 epuerta9

you can register a callback to get the input and output of each node in the agent:

out, err := a.Generate(ctx, []*schema.Message{
		// xxx
	}, agent.WithComposeOptions(compose.WithCallbacks(react.BuildAgentCallback(aaa,bbb))))

would that meet your needs?

meguminnnnnnnnn avatar May 12 '25 03:05 meguminnnnnnnnn