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
JavaScriptdeepagentsindexGrepResult
Interface●Since v1.9

GrepResult

Structured result from grep/search operations.

Copy
interface GrepResult

Properties

View source on GitHub
property
error: string
property
matches: GrepMatch[]
property
truncated: boolean

Error message on failure, undefined on success

Structured grep match entries. Populated on success and, when the search was cut short, with whatever was found before stopping. Undefined only on a hard failure.

True when the search stopped early (e.g. hit a match-count cap) and matches is therefore incomplete but still valid.