Register a harness profile for a provider or specific model.
Accepts either a pre-built HarnessProfile (from createHarnessProfile) or raw HarnessProfileOptions that will be validated and frozen automatically.
Registrations are additive: if a profile already exists under
key, the new profile is merged on top. The incoming profile's
fields win on scalar conflicts; set fields union; middleware
sequences merge by name.
registerHarnessProfile(key: string, profile: HarnessProfile | HarnessProfileOptions)| Name | Type | Description |
|---|---|---|
key* | string | Either a bare provider ( |
profile* | HarnessProfile | HarnessProfileOptions | A |
import { registerHarnessProfile } from "@langchain/deepagents";
registerHarnessProfile("openai", {
systemPromptSuffix: "Respond concisely.",
});
registerHarnessProfile("openai:gpt-5.4", {
excludedTools: ["execute"],
});