Skip to content

Runtime

Internal semantic dedupe runtime helpers.

This module keeps semantic dedupe wiring out of the public MemoryManager surface. It is used by internal scheduler registration only.

register_semantic_memory_dedupe_scheduler(*, api_key, instruction, host, config)

Register the internal semantic dedupe scheduler when supported.

Parameters:

Name Type Description Default
api_key str | None

API key used to build the internal runner client.

required
instruction str | None

Optional instruction used by the memory client.

required
host str | None

Optional host used by the memory client.

required
config dict[str, Any] | MemoryManagerConfig | None

Memory manager config input.

required

Returns:

Type Description
str | None

str | None: Stable scheduler key when registration ownership should be tracked.

release_semantic_memory_dedupe_scheduler(scheduler_key)

Release one process-local scheduler owner by key.

Parameters:

Name Type Description Default
scheduler_key str | None

Stable scheduler ownership key.

required

Returns:

Name Type Description
bool bool

True when the underlying scheduler was stopped and removed.