LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsprofilesharnessharnessProfileConfigSchema
Variable●Since v1.10

harnessProfileConfigSchema

Zod schema for parsing a harness profile from an external JSON or YAML config file.

Uses .strict() to reject unknown keys (catches typos early). Array fields (excludedTools, excludedMiddleware) accept arrays of strings; the result is passed to createHarnessProfile which converts them to Set.

Does not include extraMiddleware — middleware instances cannot be represented in JSON/YAML.

Copy
harnessProfileConfigSchema: ZodObject<__type, strict>

Example

Copy
import { readFileSync } from "fs";
import YAML from "yaml";

const raw = YAML.parse(readFileSync("profile.yaml", "utf-8"));
const config = harnessProfileConfigSchema.parse(raw);
const profile = createHarnessProfile(config);
View source on GitHub