DSPy: The framework for programming—not prompting—language models
Python
Fix tool description on RLM docs (#9270)
Isaac Miller56b5193dfdfd
diff --git a/docs/docs/api/modules/RLM.md b/docs/docs/api/modules/RLM.mdindex e50ff6385..e1fcadcce 100644--- a/docs/docs/api/modules/RLM.md+++ b/docs/docs/api/modules/RLM.md@@ -111,7 +111,7 @@ $5,000,000| `max_llm_calls` | `int` | `50` | Maximum `llm_query`/`llm_query_batched` calls per execution || `max_output_chars` | `int` | `100_000` | Maximum characters to include from REPL output || `verbose` | `bool` | `False` | Log detailed execution info |-| `tools` | `dict[str, Callable]` | `None` | Additional tool functions callable from interpreter code |+| `tools` | `list[Union[Callable, dspy.Tool]]` | `None` | Additional tool functions callable from interpreter code || `sub_lm` | `dspy.LM` | `None` | LM for sub-queries. Defaults to `dspy.settings.lm`. Use a cheaper model here. || `interpreter` | `CodeInterpreter` | `None` | Custom interpreter. Defaults to `PythonInterpreter` (Deno/Pyodide WASM). |@@ -181,7 +181,7 @@ def fetch_metadata(doc_id: str) -> str:rlm = dspy.RLM("documents, query -> answer",- tools={"fetch_metadata": fetch_metadata}+ tools=[fetch_metadata])```