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

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsbackendsGrepResult
Interface●Since v1.9

GrepResult

Structured result from grep/search operations.

Copy
interface GrepResult

Properties

property
error: string

Error message on failure, undefined on success

property
matches: GrepMatch[]

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.

property
truncated: boolean

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

View source on GitHub