Skip to content
masterclass Buddy

Deep Agents · Function

grep

Search files for a literal text pattern. It can restrict the search by directory, file-name glob, and total match count.

Last updated

Since
v0.7

Syntax

grep(self, pattern: str, path: str | None = None, glob: str | None = None, *, max_count: int | None = None) -> GrepResult

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • GrepResult
  • BackendProtocol
  • CompositeBackend

Source: grep | deepagents | LangChain Reference. Checked 2026-11-03.