Class: DSPy::InputField

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) ⇒ InputField

Returns a new instance of InputField.



7
8
9
10
11
# File 'lib/dspy/field.rb', line 7

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

Instance Attribute Details

#descObject (readonly)

Returns the value of attribute desc.



5
6
7
# File 'lib/dspy/field.rb', line 5

def desc
  @desc
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/dspy/field.rb', line 5

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/dspy/field.rb', line 5

def type
  @type
end