agentcoretest

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package agentcoretest contains reusable conformance checks for agentcore boundary implementations. Keeping the checks outside the kernel lets every host backend prove the same semantics without adding test machinery to the runtime package itself.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSessionStoreConformance

func RunSessionStoreConformance(t *testing.T, harness SessionStoreHarness)

RunSessionStoreConformance exercises the observable SessionStore contract, including optional batch and window capabilities. Backends should invoke it unchanged so local and server persistence cannot drift semantically.

Types

type SessionStoreHarness

type SessionStoreHarness struct {
	Store        agentcore.SessionStore
	NewSessionID func(t *testing.T) string
}

SessionStoreHarness supplies one backend and a factory for fresh, valid session IDs. Durable backends may use NewSessionID to create required parent rows; in-memory backends can simply return unique strings.

Jump to

Keyboard shortcuts

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