GraphReFlyTS

API Reference

agenticMemoryRetentionBundle()

Creates an agentic memory retention bundle.

Import

import { agenticMemoryRetentionBundle } from "@graphrefly/ts/solutions";

Signature

function agenticMemoryRetentionBundle(
	graph: Graph,
	opts: AgenticMemoryRetentionBundleOptions<T>,
): AgenticMemoryRetentionBundle<T>

Parameters

ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
optsAgenticMemoryRetentionBundleOptions<T>Options that configure the helper.

Returns

A bundle of graph-visible nodes for the recipe.

Example

import { agenticMemoryRetentionBundle } from "@graphrefly/ts/solutions/agentic-memory";

Source

packages/ts/src/solutions/agentic-memory/retention.ts