Class: LMError
Abstract base for LM-related errors (dspy.LMError).
- NOTE: this is an abstract class and should not be instantiated directly
URI: dspy:LMError
classDiagram
class LMError
click LMError href "../LMError/"
DSPyError <|-- LMError
click DSPyError href "../DSPyError/"
LMError <|-- LMTransportError
click LMTransportError href "../LMTransportError/"
LMError <|-- LMConfigurationError
click LMConfigurationError href "../LMConfigurationError/"
LMError <|-- LMUnsupportedFeatureError
click LMUnsupportedFeatureError href "../LMUnsupportedFeatureError/"
LMError <|-- LMProviderError
click LMProviderError href "../LMProviderError/"
LMError <|-- LMUnexpectedError
click LMUnexpectedError href "../LMUnexpectedError/"
LMError : code_value
LMError : description
LMError : id
LMError : message
LMError : name
LMError : retryable
Inheritance
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| message | 1 String |
Human-readable error message | DSPyError |
| code_value | 0..1 String |
Provider error code | DSPyError |
| retryable | 0..1 Boolean |
DSPyError | |
| 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
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:LMError |
| native | dspy:LMError |
| related | ai:ModelRisk, legal_eu_aiact:AIActNonCompliant, nexus:Risk, iso42001:AIIncidentCategory, nist_ai_100_1:Harm |
| close | nexus:RiskIncident |
LinkML Source
Direct
name: LMError
description: Abstract base for LM-related errors (``dspy.LMError``).
in_subset:
- errors
- clients
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- nexus:RiskIncident
related_mappings:
- ai:ModelRisk
- legal_eu_aiact:AIActNonCompliant
- nexus:Risk
- iso42001:AIIncidentCategory
- nist_ai_100_1:Harm
is_a: DSPyError
abstract: true
Induced
name: LMError
description: Abstract base for LM-related errors (``dspy.LMError``).
in_subset:
- errors
- clients
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- nexus:RiskIncident
related_mappings:
- ai:ModelRisk
- legal_eu_aiact:AIActNonCompliant
- nexus:Risk
- iso42001:AIIncidentCategory
- nist_ai_100_1:Harm
is_a: DSPyError
abstract: true
attributes:
message:
name: message
description: Human-readable error message.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMError
domain_of:
- DSPyError
range: string
required: true
code_value:
name: code_value
description: Provider error code.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMError
domain_of:
- DSPyError
range: string
retryable:
name: retryable
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: boolean(False)
owner: LMError
domain_of:
- DSPyError
range: boolean
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: LMError
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: LMError
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: LMError
domain_of:
- NamedThing
- LMToolSpec
range: string