Enum: LMPartType
Discriminator value used by LMPart subclasses.
URI: dspy:LMPartType
Permissible Values
| Value | Meaning | Description |
|---|---|---|
| text | None | Plain text content (LMTextPart) |
| image | None | Image content (LMImagePart) |
| audio | None | Audio content (LMAudioPart) |
| video | None | Video content (LMVideoPart) |
| document | None | Citation-enabled document (LMDocumentPart) |
| binary | None | Opaque binary payload (LMBinaryPart) |
| tool_call | None | Model-issued tool call (LMToolCallPart) |
| tool_result | None | Tool execution result (LMToolResultPart) |
| thinking | None | Reasoning / thinking trace (LMThinkingPart) |
| citation | None | Citation entry (LMCitationPart) |
| refusal | None | Model refusal (LMRefusalPart) |
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/dspy
LinkML Source
name: LMPartType
description: Discriminator value used by ``LMPart`` subclasses.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
permissible_values:
text:
text: text
description: Plain text content (``LMTextPart``).
image:
text: image
description: Image content (``LMImagePart``).
audio:
text: audio
description: Audio content (``LMAudioPart``).
video:
text: video
description: Video content (``LMVideoPart``).
document:
text: document
description: Citation-enabled document (``LMDocumentPart``).
binary:
text: binary
description: Opaque binary payload (``LMBinaryPart``).
tool_call:
text: tool_call
description: Model-issued tool call (``LMToolCallPart``).
tool_result:
text: tool_result
description: Tool execution result (``LMToolResultPart``).
thinking:
text: thinking
description: Reasoning / thinking trace (``LMThinkingPart``).
citation:
text: citation
description: Citation entry (``LMCitationPart``).
refusal:
text: refusal
description: Model refusal (``LMRefusalPart``).