Marshal SDK
The Marshal SDK is the application surface for integrating agent frameworks and custom runtimes with Marshal, Exemplar’s agentic harness toolkit—long-term memory, skills, HITL approvals, prompts, Relay policy adapters, session ingest, and MCP tools.
| Language | Package | Registry |
|---|---|---|
| Python | exemplar-harness-sdk | PyPI |
| TypeScript | @exemplar-dev/exemplar-harness-typescript-sdk | npm |
Use the SDK when you embed Marshal in application code or orchestrators. Prefer the CLI (exemplar-cli) for terminal workflows.
Python package and import names still use
exemplar-harness/Harnesstoday; the product name is Marshal.
Topics
Python: exemplar-harness-sdk · GitHub
TypeScript: @exemplar-dev/exemplar-harness-typescript-sdk · GitHub
Tokens: Account Settings.
Quick example
Python
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?", format="markdown")
hits = memory.search("formatting", search_mode="hybrid", top_k=5)TypeScript
import { Harness } from "@exemplar-dev/exemplar-harness-typescript-sdk";
const harness = Harness.fromEnv({ agentId: "support-bot" });
const memory = harness.memory({
userId: "user-123",
sessionId: "chat-abc",
appId: "my-app",
});
await memory.add("User prefers bullet-point answers.", { memoryType: "preference" });
const context = await memory.recall("how should I format answers?", { format: "markdown" });
const hits = await memory.search("formatting", { searchMode: "hybrid", topK: 5 });Related
- Getting started — connect → compose → govern → operate
- CLI — same skills, prompts, and memory from the terminal
- HITL · Prompt management · Skill management · Memory · Relay
- Frameworks — MCP + ingest adapters by agent runtime
Last updated on