Skip to content
masterclass Buddy

Deep Agents · Function

glob

Find files in a backend with a glob pattern. You can set the base directory, and patterns can match names at any depth or paths relative to that directory.

Last updated

Since
v0.7.32

Syntax

glob(self, pattern: str, path: str | None = None) -> GlobResult

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

Subscribe
  • grep include-glob
  • GlobResult

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