Skip to content

Slot: part_type

Discriminator for the LMPart subclass. One of the LMPartType permissible values.

URI: dspy:part_type

Applicable Classes

Name Description Modifies Slot
LMPart Abstract base for a single content item carried by an LM message or output no
LMSourcePart LM part whose content comes from exactly one of data, url, file_id, or path no
LMTextPart Plain text part of an LM message or output yes
LMImagePart Image content part yes
LMAudioPart Audio content part yes
LMVideoPart Video content part yes
LMDocumentPart Semantic source/document content, optionally citation-enabled yes
LMBinaryPart Opaque binary content part yes
LMToolCallPart Model-issued request to call a tool (LMToolCallPart) yes
LMToolResultPart Tool execution result returned to a model (LMToolResultPart) yes
LMThinkingPart Reasoning / thinking trace returned by a model yes
LMCitationPart Citation returned by a model yes
LMRefusalPart Model refusal part yes

Properties

Type and Range

Property Value
Range String
Domain Of LMPart

Cardinality and Requirements

Property Value
Required Yes
### Slot Characteristics
Property Value
Owner LMPart

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self dspy:part_type
native dspy:part_type

LinkML Source

name: part_type
description: Discriminator for the LMPart subclass. One of the ``LMPartType`` permissible
  values.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMPart
domain_of:
- LMPart
range: string
required: true