Class: LMHistoryEntry
A single LM call recorded in the per-LM / per-module history.
URI: dspy:LMHistoryEntry
classDiagram
class LMHistoryEntry
click LMHistoryEntry href "../LMHistoryEntry/"
LMHistoryEntry : outputs
LMHistoryEntry : request
LMHistoryEntry --> "1" LMRequest : request
click LMRequest href "../LMRequest/"
LMHistoryEntry : response
LMHistoryEntry --> "1" LMResponse : response
click LMResponse href "../LMResponse/"
LMHistoryEntry : timestamp
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| request | 1 LMRequest |
direct | |
| response | 1 LMResponse |
direct | |
| timestamp | 0..1 Datetime |
direct | |
| outputs | * String |
Legacy output strings as surfaced by inspect_history |
direct |
Usages
| used by | used in | type | used |
|---|---|---|---|
| BaseLM | history | range | LMHistoryEntry |
| LM | history | range | LMHistoryEntry |
| Module | history | range | LMHistoryEntry |
| Predictor | history | range | LMHistoryEntry |
| Predict | history | range | LMHistoryEntry |
| ChainOfThought | history | range | LMHistoryEntry |
| MultiChainComparison | history | range | LMHistoryEntry |
| BestOfN | history | range | LMHistoryEntry |
| Refine | history | range | LMHistoryEntry |
| ReAct | history | range | LMHistoryEntry |
| ReActV2 | history | range | LMHistoryEntry |
| ProgramOfThought | history | range | LMHistoryEntry |
| CodeAct | history | range | LMHistoryEntry |
| KNN | history | range | LMHistoryEntry |
| Parallel | history | range | LMHistoryEntry |
| RLM | history | range | LMHistoryEntry |
| Aggregator | history | range | LMHistoryEntry |
| Retriever | history | range | LMHistoryEntry |
| Retrieve | history | range | LMHistoryEntry |
| Embeddings | history | range | LMHistoryEntry |
| EmbeddingsWithScores | history | range | LMHistoryEntry |
| ColBERTv2 | history | range | LMHistoryEntry |
In Subsets
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:LMHistoryEntry |
| native | dspy:LMHistoryEntry |
| broad | mellea:ContextSpec |
LinkML Source
Direct
name: LMHistoryEntry
description: A single LM call recorded in the per-LM / per-module history.
in_subset:
- lm_contract
from_schema: https://w3id.org/lmodel/dspy
broad_mappings:
- mellea:ContextSpec
attributes:
request:
name: request
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
domain_of:
- LMHistoryEntry
range: LMRequest
required: true
inlined: true
response:
name: response
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
domain_of:
- LMHistoryEntry
range: LMResponse
required: true
inlined: true
timestamp:
name: timestamp
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
domain_of:
- LMHistoryEntry
range: datetime
outputs:
name: outputs
description: Legacy output strings as surfaced by ``inspect_history``.
from_schema: https://w3id.org/lmodel/dspy
domain_of:
- LMResponse
- LMHistoryEntry
range: string
multivalued: true
Induced
name: LMHistoryEntry
description: A single LM call recorded in the per-LM / per-module history.
in_subset:
- lm_contract
from_schema: https://w3id.org/lmodel/dspy
broad_mappings:
- mellea:ContextSpec
attributes:
request:
name: request
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMHistoryEntry
domain_of:
- LMHistoryEntry
range: LMRequest
required: true
inlined: true
response:
name: response
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMHistoryEntry
domain_of:
- LMHistoryEntry
range: LMResponse
required: true
inlined: true
timestamp:
name: timestamp
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMHistoryEntry
domain_of:
- LMHistoryEntry
range: datetime
outputs:
name: outputs
description: Legacy output strings as surfaced by ``inspect_history``.
from_schema: https://w3id.org/lmodel/dspy
owner: LMHistoryEntry
domain_of:
- LMResponse
- LMHistoryEntry
range: string
multivalued: true