Skip to content

Class: StreamEvent

Abstract event produced by dspy.streamify.

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

URI: dspy:StreamEvent

 classDiagram
    class StreamEvent
    click StreamEvent href "../StreamEvent/"
      StreamEvent <|-- StreamResponse
        click StreamResponse href "../StreamResponse/"
      StreamEvent <|-- StatusMessage
        click StatusMessage href "../StatusMessage/"

      StreamEvent : stream_event_kind

Inheritance

Slots

Name Cardinality and Range Description Inheritance
stream_event_kind 1
String
Kind of stream event (matches a StreamEventKind value) direct

In Subsets

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self dspy:StreamEvent
native dspy:StreamEvent
related uco_core:Annotation
close mellea:HookPayloadSpec

LinkML Source

Direct

name: StreamEvent
description: Abstract event produced by ``dspy.streamify``.
in_subset:
- streaming
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mellea:HookPayloadSpec
related_mappings:
- uco_core:Annotation
abstract: true
slots:
- stream_event_kind

Induced

name: StreamEvent
description: Abstract event produced by ``dspy.streamify``.
in_subset:
- streaming
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mellea:HookPayloadSpec
related_mappings:
- uco_core:Annotation
abstract: true
attributes:
  stream_event_kind:
    name: stream_event_kind
    description: Kind of stream event (matches a ``StreamEventKind`` value).
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: StreamEvent
    domain_of:
    - StreamEvent
    range: string
    required: true