cool-prompt

v0.1.0
Public

cool-prompt

Metadata
1 metadata entry
model
string
gpt-4o
userPrompt
2 properties
{
user:
{
name:
string
}
gateways:
[
string
]
}
systemPrompt
Empty object schema
{}

Output Schema

{
  "type": "object",
  "title": "WeatherStation",
  "required": [
    "stationId",
    "location",
    "readings"
  ],
  "properties": {
    "tags": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 30
      },
      "maxItems": 10
    },
    "active": {
      "type": "boolean",
      "default": true
    },
    "location": {
      "type": "object",
      "required": [
        "latitude",
        "longitude"
      ],
      "properties": {
        "latitude": {
          "type": "number",
          "maximum": 90,
          "minimum": -90
        },
        "elevation": {
          "type": "number",
          "description": "Elevation in meters"
        },
        "longitude": {
          "type": "number",
          "maximum": 180,
          "minimum": -180
        }
      }
    },
    "readings": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "timestamp",
          "temperatureCelsius"
        ],
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "conditions": {
            "type": "array",
            "items": {
              "enum": [
                "clear",
                "cloudy",
                "rain",
                "snow",
                "fog",
                "hail",
                "thunderstorm"
              ],
              "type": "string"
            },
            "uniqueItems": true
          },
          "windSpeedKmh": {
            "type": "number",
            "minimum": 0
          },
          "windDirection": {
            "enum": [
              "N",
              "NE",
              "E",
              "SE",
              "S",
              "SW",
              "W",
              "NW"
            ],
            "type": "string"
          },
          "humidityPercent": {
            "type": "integer",
            "maximum": 100,
            "minimum": 0
          },
          "temperatureCelsius": {
            "type": "number",
            "maximum": 56.7,
            "minimum": -89.2
          }
        }
      },
      "minItems": 1
    },
    "stationId": {
      "type": "string",
      "pattern": "^WS-[A-Z]{2}[0-9]{4}$"
    }
  },
  "description": "A weather station reading"
}