Skip to content

Slot: history

Per-module call history of LM requests / responses.

URI: dspy:history

Applicable Classes

Name Description Modifies Slot
BaseLM Abstract base class for DSPy language models (``dspy no
Module Base class for DSPy programs (``dspy no
LM Concrete LiteLLM-backed language model (``dspy no
Predictor Module that wraps a Signature + LM and produces a Prediction no
Predict Basic input-to-output predictor (``dspy no
ChainOfThought Predictor that injects a free-form rationale field (``dspy no
MultiChainComparison Generates N chains and selects the best (``dspy no
BestOfN Sample N candidates and select the highest-rewarded (``dspy no
Refine Iterative refinement loop (``dspy no
ReAct Reasoning + Acting agent with tool use (``dspy no
ReActV2 Next-generation ReAct agent (``dspy no
ProgramOfThought Tool-using predictor that emits and executes Python code (``dspy no
CodeAct Code-acting agent (``dspy no
KNN K-nearest-neighbor demo selector (``dspy no
Parallel Run modules in parallel across batched inputs (``dspy no
RLM Reinforcement-learning model wrapper (``dspy no
Aggregator Aggregation helper (``dspy no
Retriever Abstract retrieval module no
Retrieve Generic retrieve module that calls ``dspy no
Embeddings Embedding-based nearest-neighbour retriever (``dspy no
EmbeddingsWithScores Embeddings retriever that also returns similarity scores (``dspy no
ColBERTv2 Remote ColBERTv2 retrieval server (``dspy no

Properties

Type and Range

Property Value
Range LMHistoryEntry
Domain Of BaseLM, Module

Cardinality and Requirements

Property Value
Multivalued Yes

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self dspy:history
native dspy:history

LinkML Source

name: history
description: Per-module call history of LM requests / responses.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
domain_of:
- BaseLM
- Module
range: LMHistoryEntry
multivalued: true
inlined: true
inlined_as_list: true