Skip to main content
LLMsTxtTools reads llms.txt files. The format is a standardized way for websites to publish an LLM-friendly documentation index. The toolkit operates in two modes depending on whether you pass a Knowledge instance.

Agentic Mode

Without knowledge, the agent reads the index and decides which pages to fetch.
cookbook/91_tools/llms_txt_tools.py

Knowledge Mode

Pass a Knowledge instance and the toolkit exposes read_llms_txt_and_load_knowledge, which ingests the indexed pages into your knowledge base for retrieval.
cookbook/91_tools/llms_txt_tools_knowledge.py

Toolkit Params

Toolkit Functions

All functions have sync and async variants.

Developer Resources