Class: LMCitationPart
Citation returned by a model. At least one of text/title/url is required.
URI: dspy:LMCitationPart
classDiagram
class LMCitationPart
click LMCitationPart href "../LMCitationPart/"
LMPart <|-- LMCitationPart
click LMPart href "../LMPart/"
LMCitationPart : metadata
LMCitationPart --> "0..1" Any : metadata
click Any href "../Any/"
LMCitationPart : part_type
LMCitationPart : text
LMCitationPart : title
LMCitationPart : url
Inheritance
- LMPart
- LMCitationPart
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| text | 0..1 String |
Plain-text payload | direct |
| title | 0..1 String |
Human-readable title or display name | direct |
| url | 0..1 String |
URL pointing at a remote 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 |
Expressions & Logic
#### Any Of The class must satisfy at least one of: - AnonymousClassExpression({'slot_conditions': {'text': SlotDefinition({'name': 'text', 'required': True})}}) - AnonymousClassExpression({ 'slot_conditions': {'title': SlotDefinition({'name': 'title', 'required': True})} }) - AnonymousClassExpression({'slot_conditions': {'url': SlotDefinition({'name': 'url', 'required': True})}})Usages
| used by | used in | type | used |
|---|---|---|---|
| Document | citations | range | LMCitationPart |
| LMDocumentPart | citations | range | LMCitationPart |
In Subsets
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:LMCitationPart |
| native | dspy:LMCitationPart |
LinkML Source
Direct
name: LMCitationPart
description: Citation returned by a model. At least one of text/title/url is required.
in_subset:
- lm_contract
from_schema: https://w3id.org/lmodel/dspy
is_a: LMPart
slots:
- text
- title
- url
slot_usage:
part_type:
name: part_type
ifabsent: string(citation)
equals_string: citation
any_of:
- slot_conditions:
text:
name: text
required: true
- slot_conditions:
title:
name: title
required: true
- slot_conditions:
url:
name: url
required: true
Induced
name: LMCitationPart
description: Citation returned by a model. At least one of text/title/url is required.
in_subset:
- lm_contract
from_schema: https://w3id.org/lmodel/dspy
is_a: LMPart
slot_usage:
part_type:
name: part_type
ifabsent: string(citation)
equals_string: citation
attributes:
text:
name: text
description: Plain-text payload.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMCitationPart
domain_of:
- Reasoning
- Citation
- LMTextPart
- LMThinkingPart
- LMCitationPart
- LMRefusalPart
range: string
title:
name: title
description: Human-readable title or display name.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
slot_uri: dct:title
owner: LMCitationPart
domain_of:
- Citation
- Document
- LMDocumentPart
- LMCitationPart
range: string
url:
name: url
description: URL pointing at a remote payload.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
slot_uri: schema:url
owner: LMCitationPart
domain_of:
- Image
- Audio
- File
- Citation
- Document
- LMSourcePart
- LMDocumentPart
- LMCitationPart
range: string
metadata:
name: metadata
description: Opaque key/value metadata passed alongside an object.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMCitationPart
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(citation)
owner: LMCitationPart
domain_of:
- LMPart
range: string
required: true
equals_string: citation
any_of:
- slot_conditions:
text:
name: text
required: true
- slot_conditions:
title:
name: title
required: true
- slot_conditions:
url:
name: url
required: true