Skip to content

Class: Type

Abstract DSPy custom type (dspy.Type).

  • NOTE: this is an abstract class and should not be instantiated directly

URI: dspy:Type

 classDiagram
    class Type
    click Type href "../Type/"
      NamedThing <|-- Type
        click NamedThing href "../NamedThing/"


      Type <|-- Image
        click Image href "../Image/"
      Type <|-- Audio
        click Audio href "../Audio/"
      Type <|-- File
        click File href "../File/"
      Type <|-- Code
        click Code href "../Code/"
      Type <|-- History
        click History href "../History/"
      Type <|-- Reasoning
        click Reasoning href "../Reasoning/"
      Type <|-- Citation
        click Citation href "../Citation/"
      Type <|-- Document
        click Document href "../Document/"


      Type : description

      Type : id

      Type : name

Inheritance

Slots

Name Cardinality and Range Description Inheritance
id 1
Identifier
Stable opaque identifier for an instance NamedThing
name 0..1
String
Short human-readable name NamedThing
description 0..1
String
Free-form description NamedThing

In Subsets

Identifier and Mapping Information

Annotations

property value
dspy_source_paths ['dspy/adapters/types/base_type.py']
dspy_source_urls ['https://github.com/stanfordnlp/dspy/blob/main/dspy/adapters/types/base_type.py']

Schema Source

Mappings

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

LinkML Source

Direct

name: Type
annotations:
  dspy_source_paths:
    tag: dspy_source_paths
    value:
    - dspy/adapters/types/base_type.py
  dspy_source_urls:
    tag: dspy_source_urls
    value:
    - https://github.com/stanfordnlp/dspy/blob/main/dspy/adapters/types/base_type.py
description: Abstract DSPy custom type (``dspy.Type``).
in_subset:
- custom_types
from_schema: https://w3id.org/lmodel/dspy
is_a: NamedThing
abstract: true

Induced

name: Type
annotations:
  dspy_source_paths:
    tag: dspy_source_paths
    value:
    - dspy/adapters/types/base_type.py
  dspy_source_urls:
    tag: dspy_source_urls
    value:
    - https://github.com/stanfordnlp/dspy/blob/main/dspy/adapters/types/base_type.py
description: Abstract DSPy custom type (``dspy.Type``).
in_subset:
- custom_types
from_schema: https://w3id.org/lmodel/dspy
is_a: NamedThing
abstract: true
attributes:
  id:
    name: id
    description: Stable opaque identifier for an instance.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    slot_uri: schema:identifier
    identifier: true
    owner: Type
    domain_of:
    - NamedThing
    range: Identifier
    required: true
  name:
    name: name
    description: Short human-readable name.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    slot_uri: rdfs:label
    owner: Type
    domain_of:
    - NamedThing
    - LMToolCallPart
    - LMMessage
    - LMToolSpec
    range: string
  description:
    name: description
    description: Free-form description.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    slot_uri: dct:description
    owner: Type
    domain_of:
    - NamedThing
    - LMToolSpec
    range: string