Class: History
Conversation history (dspy.History).
URI: dspy:History
classDiagram
class History
click History href "../History/"
Type <|-- History
click Type href "../Type/"
History : description
History : history_messages
History --> "*" Any : history_messages
click Any href "../Any/"
History : id
History : name
Inheritance
- NamedThing
- Type
- History
- Type
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| history_messages | * Any |
Untyped chat-history messages used by ``dspy | 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/adapters/types/history.py'] |
| dspy_source_urls | ['https://github.com/stanfordnlp/dspy/blob/main/dspy/adapters/types/history.py'] |
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:History |
| native | dspy:History |
| close | mellea:ContextSpec |
LinkML Source
Direct
name: History
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/adapters/types/history.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/adapters/types/history.py
description: Conversation history (``dspy.History``).
in_subset:
- custom_types
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mellea:ContextSpec
is_a: Type
slots:
- history_messages
Induced
name: History
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/adapters/types/history.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/adapters/types/history.py
description: Conversation history (``dspy.History``).
in_subset:
- custom_types
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mellea:ContextSpec
is_a: Type
attributes:
history_messages:
name: history_messages
description: Untyped chat-history messages used by ``dspy.History``.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: History
domain_of:
- History
range: Any
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: History
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: History
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: History
domain_of:
- NamedThing
- LMToolSpec
range: string