Skip to main content
FilesystemContextProvider wraps a local directory and gives the agent a single query_<id> tool. A read-only sub-agent uses FileTools scoped to the root to list, search, and read files.
filesystem.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Clone Agno

Clone the repository and run the remaining commands from its root:
5

Run the example

Run the example from the repository root:
Full source: cookbook/12_context/00_filesystem.py