Skip to main content

seam-client

Build custom agents with SEAM-backed long-term memory without embedding the private SEAM runtime in your application.

seam-client is the public, Apache-2.0 Python SDK. It provides:

  • synchronous and asynchronous clients
  • remember, recall, and context assembly
  • framework-neutral before-turn and after-turn agent hooks
  • typed, opaque response models
  • bearer-token authentication and explicit error types

It does not contain the private SEAM runtime, MIRL implementation, HS/1 surface codecs, storage engine, ranking logic, benchmark holdouts, or model orchestration internals.

Install

python -m pip install seam-client

The package is in alpha. Until the first PyPI release, install from the public repository:

python -m pip install \
  "seam-client @ git+https://github.com/BlackhatShiftey/Seam_Runtime.git@main#subdirectory=sdk"

Use it in an agent

from seam_client import AgentMemory, SeamClient

client = SeamClient(
    base_url="http://127.0.0.1:8765",
    api_key="your-seam-token",
)
memory = AgentMemory(
    client=client,
    namespace="research-agent",
    session_id="thread-42",
    agent_id="researcher",
)

messages = [{"role": "user", "content": "What did we decide about licensing?"}]
messages = memory.augment_messages(
    messages,
    user_input=messages[-1]["content"],
)

# Call your preferred model/provider with `messages`.
assistant_output = "We separated the public SDK from the private runtime."

memory.after_turn(messages[-1]["content"], assistant_output)

AgentMemory does not choose or call a model. It supplies memory hooks that can wrap your own OpenAI, Anthropic, local-model, or custom agent loop.

Direct client

from seam_client import SeamClient

with SeamClient.from_env() as seam:
    seam.remember(
        "The operator prefers evidence-backed answers.",
        namespace="my-agent",
        session_id="thread-42",
    )
    recalled = seam.recall(
        "answer style",
        namespace="my-agent",
        session_id="thread-42",
    )
    for memory in recalled.memories:
        print(memory.text, memory.score)

Environment variables:

  • SEAM_BASE_URL — defaults to http://127.0.0.1:8765
  • SEAM_API_TOKEN — optional bearer token for the configured server

Async client

from seam_client import AsyncAgentMemory, AsyncSeamClient

async with AsyncSeamClient.from_env() as client:
    memory = AsyncAgentMemory(
        client=client,
        namespace="async-agent",
        session_id="thread-7",
    )
    context = await memory.before_turn("What should I remember?")

Partitions

  • namespace isolates one agent or application from another.
  • session_id isolates a specific conversation or run.
  • scope is semantic and defaults to thread. Supported server scopes are ephemeral, global, org, project, thread, and user.

The server maps public partitions into an SDK-only internal namespace. Public responses use opaque rcpt_... and mem_... identifiers.

Hosted access

The SDK is public. A hosted SEAM endpoint is not implied by installing it. Use a SEAM server URL and token you have been given, or run an authorized local SEAM server. Hosted access remains separately provisioned.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seam_client-0.1.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seam_client-0.1.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file seam_client-0.1.0.tar.gz.

File metadata

  • Download URL: seam_client-0.1.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for seam_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 62328dc246424fc796c8fb89727880378b14894aa877e894b97b04df21fbafea
MD5 98fea553e11600adc445956b334f8f4b
BLAKE2b-256 66003a4f6f819753fb5541638a747d300c6320f04d4c557af23150de339e2962

See more details on using hashes here.

Provenance

The following attestation bundles were made for seam_client-0.1.0.tar.gz:

Publisher: sdk-publish.yml on BlackhatShiftey/Seam_Runtime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seam_client-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: seam_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for seam_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2af2a5134e7197a87d4ed0c09a8f518ee75c23ecf731cdac50fb360f67a75c9b
MD5 256075da8739f8a3bbfd188fa7943358
BLAKE2b-256 b80fce150baf804f12535379dde4dc95b4cca92184056850d772b860028980a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for seam_client-0.1.0-py3-none-any.whl:

Publisher: sdk-publish.yml on BlackhatShiftey/Seam_Runtime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page