Class: OmniAgent::Tool::SchemaBuilder::PolymorphicFieldBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/omni_agent/tool/schema_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#id_descriptionObject (readonly)

Returns the value of attribute id_description.



181
182
183
# File 'lib/omni_agent/tool/schema_builder.rb', line 181

def id_description
  @id_description
end

#id_typeObject (readonly)

Returns the value of attribute id_type.



181
182
183
# File 'lib/omni_agent/tool/schema_builder.rb', line 181

def id_type
  @id_type
end

#type_descriptionObject (readonly)

Returns the value of attribute type_description.



181
182
183
# File 'lib/omni_agent/tool/schema_builder.rb', line 181

def type_description
  @type_description
end

#type_valuesObject (readonly)

Returns the value of attribute type_values.



181
182
183
# File 'lib/omni_agent/tool/schema_builder.rb', line 181

def type_values
  @type_values
end

Instance Method Details

#id(type: "string", description: nil) ⇒ Object



188
189
190
191
# File 'lib/omni_agent/tool/schema_builder.rb', line 188

def id(type: "string", description: nil)
  @id_type = type
  @id_description = description
end

#type(values: nil, description: nil) ⇒ Object



183
184
185
186
# File 'lib/omni_agent/tool/schema_builder.rb', line 183

def type(values: nil, description: nil)
  @type_values = values
  @type_description = description
end