Skip to content

Class: LMTextPart

Plain text part of an LM message or output.

URI: dspy:LMTextPart

 classDiagram
    class LMTextPart
    click LMTextPart href "../LMTextPart/"
      LMPart <|-- LMTextPart
        click LMPart href "../LMPart/"

      LMTextPart : metadata





        LMTextPart --> "0..1" Any : metadata
        click Any href "../Any/"



      LMTextPart : part_type

      LMTextPart : text

Inheritance

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

Mappings

Mapping Type Mapped Value
self dspy:LMTextPart
native dspy:LMTextPart
close mcp:TextContent

LinkML Source

Direct

name: LMTextPart
description: Plain text part of an LM message or output.
in_subset:
- lm_contract
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mcp:TextContent
is_a: LMPart
slots:
- text
slot_usage:
  part_type:
    name: part_type
    ifabsent: string(text)
    equals_string: text

Induced

name: LMTextPart
description: Plain text part of an LM message or output.
in_subset:
- lm_contract
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mcp:TextContent
is_a: LMPart
slot_usage:
  part_type:
    name: part_type
    ifabsent: string(text)
    equals_string: text
attributes:
  text:
    name: text
    description: Plain-text payload.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: LMTextPart
    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: LMTextPart
    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(text)
    owner: LMTextPart
    domain_of:
    - LMPart
    range: string
    required: true
    equals_string: text