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
JavaScriptdeepagentsprofilescreateHarnessProfile
Function●Since v1.10

createHarnessProfile

Copy
createHarnessProfile(options: HarnessProfileOptions = {}): HarnessProfile
View source on GitHub

Parameters

NameTypeDescription
optionsHarnessProfileOptions
Default:{}

Partial profile configuration.

Example

Copy
const profile = createHarnessProfile({
  systemPromptSuffix: "Think step by step.",
  excludedTools: ["execute"],
});

Create a frozen HarnessProfile from user-provided options.

Validates all fields, converts mutable collections to their frozen counterparts, and returns a frozen object. Empty options produce a no-op profile (all defaults).