Class: LMRefusalPart
Model refusal part.
URI: dspy:LMRefusalPart
classDiagram
class LMRefusalPart
click LMRefusalPart href "../LMRefusalPart/"
LMPart <|-- LMRefusalPart
click LMPart href "../LMPart/"
LMRefusalPart : metadata
LMRefusalPart --> "0..1" Any : metadata
click Any href "../Any/"
LMRefusalPart : part_type
LMRefusalPart : text
Inheritance
- LMPart
- LMRefusalPart
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| text | 0..1 String |
Plain-text payload | direct |
| metadata | 0..1 Any |
Opaque key/value metadata passed alongside an object | LMPart |
| part_type | 1 String |
Discriminator for the LMPart subclass | LMPart |
In Subsets
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:LMRefusalPart |
| native | dspy:LMRefusalPart |
LinkML Source
Direct
name: LMRefusalPart
description: Model refusal part.
in_subset:
- lm_contract
from_schema: https://w3id.org/lmodel/dspy
is_a: LMPart
slots:
- text
slot_usage:
part_type:
name: part_type
ifabsent: string(refusal)
equals_string: refusal
Induced
name: LMRefusalPart
description: Model refusal part.
in_subset:
- lm_contract
from_schema: https://w3id.org/lmodel/dspy
is_a: LMPart
slot_usage:
part_type:
name: part_type
ifabsent: string(refusal)
equals_string: refusal
attributes:
text:
name: text
description: Plain-text payload.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMRefusalPart
domain_of:
- Reasoning
- Citation
- LMTextPart
- LMThinkingPart
- LMCitationPart
- LMRefusalPart
range: string
metadata:
name: metadata
description: Opaque key/value metadata passed alongside an object.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMRefusalPart
domain_of:
- ToolResult
- Citation
- LMPart
- LMMessage
- LMToolSpec
- LMRequest
- LMUsage
- LMOutput
- LMResponse
range: Any
part_type:
name: part_type
description: Discriminator for the LMPart subclass. One of the ``LMPartType``
permissible values.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: string(refusal)
owner: LMRefusalPart
domain_of:
- LMPart
range: string
required: true
equals_string: refusal