Skip to content

Class: LMImagePart

Image content part.

URI: dspy:LMImagePart

 classDiagram
    class LMImagePart
    click LMImagePart href "../LMImagePart/"
      LMSourcePart <|-- LMImagePart
        click LMSourcePart href "../LMSourcePart/"

      LMImagePart : data

      LMImagePart : detail

      LMImagePart : file_id

      LMImagePart : metadata





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



      LMImagePart : mimetype

      LMImagePart : part_type

      LMImagePart : path

      LMImagePart : url

Inheritance

Slots

Name Cardinality and Range Description Inheritance
detail 0..1
String
Image detail level (low / high / auto) direct
mimetype 0..1
MimeType
IANA media type for the payload LMSourcePart
data 0..1
String
Base64-encoded inline payload LMSourcePart
url 0..1
String
URL pointing at a remote payload LMSourcePart
file_id 0..1
Identifier
Provider-side file identifier for an uploaded asset LMSourcePart
path 0..1
String
Local filesystem path to a payload LMSourcePart
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:LMImagePart
native dspy:LMImagePart
close mcp:ImageContent

LinkML Source

Direct

name: LMImagePart
description: Image content part.
in_subset:
- lm_contract
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mcp:ImageContent
is_a: LMSourcePart
slots:
- detail
slot_usage:
  part_type:
    name: part_type
    ifabsent: string(image)
    equals_string: image
  mimetype:
    name: mimetype
    ifabsent: string(image/png)

Induced

name: LMImagePart
description: Image content part.
in_subset:
- lm_contract
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mcp:ImageContent
is_a: LMSourcePart
slot_usage:
  part_type:
    name: part_type
    ifabsent: string(image)
    equals_string: image
  mimetype:
    name: mimetype
    ifabsent: string(image/png)
attributes:
  detail:
    name: detail
    description: Image detail level (low / high / auto).
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: LMImagePart
    domain_of:
    - LMImagePart
    range: string
  mimetype:
    name: mimetype
    description: IANA media type for the payload.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    ifabsent: string(image/png)
    owner: LMImagePart
    domain_of:
    - Audio
    - File
    - Document
    - LMSourcePart
    - LMDocumentPart
    range: MimeType
  data:
    name: data
    description: Base64-encoded inline payload.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: LMImagePart
    domain_of:
    - Audio
    - File
    - Document
    - LMSourcePart
    - LMDocumentPart
    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: LMImagePart
    domain_of:
    - Image
    - Audio
    - File
    - Citation
    - Document
    - LMSourcePart
    - LMDocumentPart
    - LMCitationPart
    range: string
  file_id:
    name: file_id
    description: Provider-side file identifier for an uploaded asset.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: LMImagePart
    domain_of:
    - Document
    - LMSourcePart
    - LMDocumentPart
    range: Identifier
  path:
    name: path
    description: Local filesystem path to a payload.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: LMImagePart
    domain_of:
    - Document
    - LMSourcePart
    - LMDocumentPart
    range: string
  metadata:
    name: metadata
    description: Opaque key/value metadata passed alongside an object.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: LMImagePart
    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(image)
    owner: LMImagePart
    domain_of:
    - LMPart
    range: string
    required: true
    equals_string: image