Class: DSPy::OutputField

Inherits:
Object
  • Object
show all
Defined in:
lib/dspy/field.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type, desc: nil) ⇒ OutputField

Returns a new instance of OutputField.



17
18
19
20
21
# File 'lib/dspy/field.rb', line 17

def initialize(name, type, desc: nil)
  @name = name
  @type = type
  @desc = desc
end

Instance Attribute Details

#descObject (readonly)

Returns the value of attribute desc.



15
16
17
# File 'lib/dspy/field.rb', line 15

def desc
  @desc
end

#nameObject (readonly)

Returns the value of attribute name.



15
16
17
# File 'lib/dspy/field.rb', line 15

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



15
16
17
# File 'lib/dspy/field.rb', line 15

def type
  @type
end