Skip to Content
MarshalSDKOverview

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.

LanguagePackageRegistry
Pythonexemplar-harness-sdkPyPI
TypeScript@exemplar-dev/exemplar-harness-typescript-sdknpm

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 / Harness today; the product name is Marshal.

Topics

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 });
Last updated on