DSPy RLM (Recursive Language Model)
Load this optional Skill only when the request is specifically about explaining
or implementing dspy.RLM; ordinary RLM Turns do not need it.
load_skill(...)returns a dictionary; read its Skill body fromload_result["skill_markdown"]. Readreferences/rlm-contract.mdwithread_skill_resourcewhen you need constructor limits, built-ins, or Fleet mapping. That call also returns a dictionary: extractcontract = resource_result["content"]instead of slicing the result.- Treat
dspy.RLMas a Recursive Language Model: a sandboxed REPL code agent. Never call it a Retrieval Language Model or redefine it as RAG /dspy.Retrieve/ ReAct. - Prefer Python standard-library computation, parsing, search, and aggregation
for deterministic work. Use
llm_queryfor one bounded semantic judgment andllm_query_batchedfor multiple independent semantic judgments with self-contained prompts. - Ground any semantic prompts in the extracted contract string. Do not invent DSPy RLM APIs from training priors.
- For long writeups when Session Workspace is available, follow report-builder
/ workspace-files: write the full report durably, then issue exactly one
typed
SUBMITwith every active Signature output. - For nontrivial deterministic work, verify in a later iteration using an independent invariant, known reference, higher-precision stability, or a genuinely independent formulation before submitting.
Authority: supported DSPy 3.3.x and https://dspy.ai/api/modules/RLM/ — not Daytona docs as DSPy authority. The current lock resolves 3.3.1.