Class: LMCacheConfig
DSPy memoization cache controls. Skips the provider call entirely on hit.
URI: dspy:LMCacheConfig
classDiagram
class LMCacheConfig
click LMCacheConfig href "../LMCacheConfig/"
LMCacheConfig : enabled
LMCacheConfig : rollout_id
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| enabled | 0..1 Boolean |
direct | |
| rollout_id | 0..1 String |
Rollout id used to differentiate cache entries | direct |
Usages
| used by | used in | type | used |
|---|---|---|---|
| LMConfig | cache_config | range | LMCacheConfig |
In Subsets
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:LMCacheConfig |
| native | dspy:LMCacheConfig |
LinkML Source
Direct
name: LMCacheConfig
description: DSPy memoization cache controls. Skips the provider call entirely on
hit.
in_subset:
- lm_contract
- clients
from_schema: https://w3id.org/lmodel/dspy
slots:
- enabled
- rollout_id
Induced
name: LMCacheConfig
description: DSPy memoization cache controls. Skips the provider call entirely on
hit.
in_subset:
- lm_contract
- clients
from_schema: https://w3id.org/lmodel/dspy
attributes:
enabled:
name: enabled
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMCacheConfig
domain_of:
- LMCacheConfig
- LMPromptCacheConfig
range: boolean
rollout_id:
name: rollout_id
description: Rollout id used to differentiate cache entries.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMCacheConfig
domain_of:
- LMCacheConfig
range: string