Property
Represents a single property
- This model defines the structure of properties that can be used in prompts, including their type, description, whether they are required, and other attributes.
- It allows for the definition of dynamic inputs that can be filled with data and processed to generate prompts for AI models.
Class Diagram
Section titled “Class Diagram”---
title: Property
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class Property {
+string name
+string kind
+string description
+boolean required
+unknown default
+unknown example
+unknown[] enumValues
}
class ArrayProperty {
+string kind
+Property items
}
Property <|-- ArrayProperty
class ObjectProperty {
+string kind
+Property[] properties
}
Property <|-- ObjectProperty
Yaml Example
Section titled “Yaml Example”name: my-inputkind: stringdescription: A description of the input propertyrequired: truedefault: default valueexample: example valueenumValues: - value1 - value2 - value3Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| name | string | Name of the property |
| kind | string | The data type of the input property |
| description | string | A short description of the input property |
| required | boolean | Whether the property is required |
| default | unknown | The default value of the property - this represents the default value if none is provided |
| example | unknown | Example value used for either initialization or tooling |
| enumValues | unknown[] | Allowed enumeration values for the property |
Child Types
Section titled “Child Types”The following types extend Property:
Alternate Constructions
Section titled “Alternate Constructions”The following alternate constructions are available for Property.
These allow for simplified creation of instances using a single property.
boolean input
Section titled “boolean input”Simple construction with just a kind of boolean
The following simplified representation can be used:
input: trueThis is equivalent to the full representation:
input: kind: boolean example: truefloat32 input
Section titled “float32 input”Simple construction with just a kind of float
The following simplified representation can be used:
input: 3.14This is equivalent to the full representation:
input: kind: float example: 3.14integer input
Section titled “integer input”Simple construction with just a kind of integer
The following simplified representation can be used:
input: 5This is equivalent to the full representation:
input: kind: integer example: 5string input
Section titled “string input”Simple construction with just a kind of string
The following simplified representation can be used:
input: "example"This is equivalent to the full representation:
input: kind: string example: "example"