Module: DSPy::Mixins::StructSerialization

Extended by:
T::Sig
Defined in:
lib/dspy/mixins/struct_builder.rb

Overview

Module for adding serialization capabilities to enhanced structs

Instance Method Summary collapse

Instance Method Details

#to_hObject



121
122
123
124
# File 'lib/dspy/mixins/struct_builder.rb', line 121

def to_h
  hash = input_values_hash
  hash.merge(output_properties_hash)
end