testutil

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package testutil provides test helpers for the agent SDK.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InmemMemory

type InmemMemory struct {
	// contains filtered or unexported fields
}

InmemMemory is a mutex-protected in-memory interfaces.Memory for tests.

func NewInmemMemory

func NewInmemMemory() *InmemMemory

NewInmemMemory returns an empty in-memory store.

func (*InmemMemory) Clear

func (m *InmemMemory) Clear(ctx context.Context, scope interfaces.MemoryScope) error

Clear removes all memories matching scope.

func (*InmemMemory) Load

Load retrieves memories within scope.

func (*InmemMemory) Store

Store persists a memory in scope and returns its ID.

Jump to

Keyboard shortcuts

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