Class: Cache
DSPy cache configuration (dspy.cache).
URI: dspy:Cache
classDiagram
class Cache
click Cache href "../Cache/"
NamedThing <|-- Cache
click NamedThing href "../NamedThing/"
Cache : description
Cache : disk_cache_dir
Cache : disk_size_limit_bytes
Cache : enable_disk_cache
Cache : enable_memory_cache
Cache : id
Cache : memory_max_entries
Cache : name
Cache : restrict_pickle
Cache : safe_types
Inheritance
- NamedThing
- Cache
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| enable_disk_cache | 0..1 Boolean |
direct | |
| enable_memory_cache | 0..1 Boolean |
direct | |
| disk_cache_dir | 0..1 String |
direct | |
| disk_size_limit_bytes | 0..1 Integer |
direct | |
| memory_max_entries | 0..1 Integer |
direct | |
| restrict_pickle | 0..1 Boolean |
direct | |
| safe_types | * String |
Dotted import paths of additional safe pickle types | direct |
| id | 1 Identifier |
Stable opaque identifier for an instance | NamedThing |
| name | 0..1 String |
Short human-readable name | NamedThing |
| description | 0..1 String |
Free-form description | NamedThing |
In Subsets
Identifier and Mapping Information
Annotations
| property | value |
|---|---|
| dspy_source_paths | ['dspy/clients/cache.py'] |
| dspy_source_urls | ['https://github.com/stanfordnlp/dspy/blob/main/dspy/clients/cache.py'] |
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:Cache |
| native | dspy:Cache |
LinkML Source
Direct
name: Cache
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/clients/cache.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/clients/cache.py
description: DSPy cache configuration (``dspy.cache``).
in_subset:
- clients
from_schema: https://w3id.org/lmodel/dspy
is_a: NamedThing
slots:
- enable_disk_cache
- enable_memory_cache
- disk_cache_dir
- disk_size_limit_bytes
- memory_max_entries
- restrict_pickle
- safe_types
Induced
name: Cache
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/clients/cache.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/clients/cache.py
description: DSPy cache configuration (``dspy.cache``).
in_subset:
- clients
from_schema: https://w3id.org/lmodel/dspy
is_a: NamedThing
attributes:
enable_disk_cache:
name: enable_disk_cache
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: boolean(True)
owner: Cache
domain_of:
- Cache
range: boolean
enable_memory_cache:
name: enable_memory_cache
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: boolean(True)
owner: Cache
domain_of:
- Cache
range: boolean
disk_cache_dir:
name: disk_cache_dir
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: Cache
domain_of:
- Cache
range: string
disk_size_limit_bytes:
name: disk_size_limit_bytes
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: Cache
domain_of:
- Cache
range: integer
minimum_value: 0
memory_max_entries:
name: memory_max_entries
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: Cache
domain_of:
- Cache
range: integer
minimum_value: 0
restrict_pickle:
name: restrict_pickle
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: boolean(False)
owner: Cache
domain_of:
- Cache
range: boolean
safe_types:
name: safe_types
description: Dotted import paths of additional safe pickle types.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: Cache
domain_of:
- Cache
range: string
multivalued: true
id:
name: id
description: Stable opaque identifier for an instance.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
slot_uri: schema:identifier
identifier: true
owner: Cache
domain_of:
- NamedThing
range: Identifier
required: true
name:
name: name
description: Short human-readable name.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
slot_uri: rdfs:label
owner: Cache
domain_of:
- NamedThing
- LMToolCallPart
- LMMessage
- LMToolSpec
range: string
description:
name: description
description: Free-form description.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
slot_uri: dct:description
owner: Cache
domain_of:
- NamedThing
- LMToolSpec
range: string