Help us shape the future of Go! Take the 2026 Go Developer Survey

memory

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

README

Memory Example

This example uses one shared memory.WindowMemory and two Agent runs with the same SessionID.

The first run saves its final message history. The second run loads that session history before adding the new user input, so the LLM request receives remembered context.

WindowMemory is an in-process bounded memory provider. It is useful for embedding and tests, but it does not survive process restart.

Run it with:

go run ./examples/memory

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL