Class: OmniAgent::Tool::SchemaBuilder::PolymorphicFieldBuilder
- Inherits:
-
Object
- Object
- OmniAgent::Tool::SchemaBuilder::PolymorphicFieldBuilder
- Defined in:
- lib/omni_agent/tool/schema_builder.rb
Instance Attribute Summary collapse
-
#id_description ⇒ Object
readonly
Returns the value of attribute id_description.
-
#id_type ⇒ Object
readonly
Returns the value of attribute id_type.
-
#type_description ⇒ Object
readonly
Returns the value of attribute type_description.
-
#type_values ⇒ Object
readonly
Returns the value of attribute type_values.
Instance Method Summary collapse
Instance Attribute Details
#id_description ⇒ Object (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_type ⇒ Object (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_description ⇒ Object (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_values ⇒ Object (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 |