Skip to Content
HarnessSDKOverview

Harness SDK

The Harness SDK (exemplar-harness-sdk) is the Python surface for integrating agent frameworks and custom runtimes with Exemplar Harness—session ingest, long-term memory, skills, and prompts.

Use the SDK when you embed Harness in application code or orchestrators. Prefer the CLI (exemplar-cli) for terminal workflows.

Topics

Quick example

from exemplar_harness import Harness harness = Harness.from_env() memory = harness.memory(user_id="user-123", session_id="chat-abc", app_id="my-app") memory.add("User prefers bullet-point answers.", memory_type="preference") context = memory.recall("how should I format answers?") # inject into system prompt
Last updated on