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

isHarnessProfile

Type guard: is this a fully-constructed HarnessProfile (frozen with Set fields) or raw options?

Options use arrays for excludedTools; profiles use Set. We distinguish by checking whether excludedTools has a .has method (present on Set, absent on Array).

Copy
isHarnessProfile(value: HarnessProfile | HarnessProfileOptions): value is HarnessProfile

Parameters

NameTypeDescription
value*HarnessProfile | HarnessProfileOptions
View source on GitHub