Skip to content

Class: ExampleField

A single (key, value) entry stored inside an Example.

URI: dspy:ExampleField

 classDiagram
    class ExampleField
    click ExampleField href "../ExampleField/"
      ExampleField : is_input

      ExampleField : key

      ExampleField : value





        ExampleField --> "0..1" Any : value
        click Any href "../Any/"



Slots

Name Cardinality and Range Description Inheritance
key 1
String
Field name direct
value 0..1
Any
JSON-serialized value direct
is_input 0..1
Boolean
Whether this field is part of the example's input subset direct

Usages

used by used in type used
Example fields range ExampleField
Prediction fields range ExampleField
EvaluationResult fields range ExampleField

In Subsets

Identifier and Mapping Information

Schema Source

Mappings

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

LinkML Source

Direct

name: ExampleField
description: A single (key, value) entry stored inside an ``Example``.
in_subset:
- core
from_schema: https://w3id.org/lmodel/dspy
attributes:
  key:
    name: key
    description: Field name.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    identifier: true
    domain_of:
    - ExampleField
    range: string
    required: true
  value:
    name: value
    description: JSON-serialized value.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    domain_of:
    - ExampleField
    - FinalOutput
    range: Any
  is_input:
    name: is_input
    description: Whether this field is part of the example's input subset.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    ifabsent: boolean(False)
    domain_of:
    - ExampleField
    range: boolean

Induced

name: ExampleField
description: A single (key, value) entry stored inside an ``Example``.
in_subset:
- core
from_schema: https://w3id.org/lmodel/dspy
attributes:
  key:
    name: key
    description: Field name.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    identifier: true
    owner: ExampleField
    domain_of:
    - ExampleField
    range: string
    required: true
  value:
    name: value
    description: JSON-serialized value.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: ExampleField
    domain_of:
    - ExampleField
    - FinalOutput
    range: Any
  is_input:
    name: is_input
    description: Whether this field is part of the example's input subset.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    ifabsent: boolean(False)
    owner: ExampleField
    domain_of:
    - ExampleField
    range: boolean