Tools that can call DeepWiki's functions
Install this plugin in the same environment as LLM.
llm install llm-tools-deepwiki
To use this with the LLM command-line tool:
llm --tool ask_question "Example prompt goes here" --tools-debug
With the LLM Python API:
import llm
from llm_tools_deepwiki import ask_question
model = llm.get_model("gpt-4.1-mini")
result = model.chain(
"Example prompt goes here",
tools=[ask_question]
).text()
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-tools-deepwiki
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
llm install -e '.[test]'
To run the tests:
python -m pytest