Skip to content

Instantly share code, notes, and snippets.

@mikeghen
Last active March 1, 2026 16:22
Show Gist options
  • Select an option

  • Save mikeghen/f0bda6788d61add975d93d7235487e3c to your computer and use it in GitHub Desktop.

Select an option

Save mikeghen/f0bda6788d61add975d93d7235487e3c to your computer and use it in GitHub Desktop.
tweet_schema.json
{
"name": "tweet_generation",
"strict": true,
"schema": {
"type": "object",
"properties": {
"tweets": {
"type": "array",
"description": "A list of generated tweets based on the input.",
"items": {
"type": "object",
"properties": {
"tweet": {
"type": "string",
"description": "The text content of the tweet."
},
"hashtags": {
"type": "array",
"description": "A list of relevant hashtags for the tweet.",
"items": {
"type": "string"
}
}
},
"required": [
"tweet",
"hashtags"
],
"additionalProperties": false
}
}
},
"required": [
"tweets"
],
"additionalProperties": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment