Skip to content

Commit ce004e1

Browse files
committed
Update gptp file syntax
1 parent 0895b27 commit ce004e1

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

docs/examples/faq-generator.gptp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"content": "Create an FAQ about {{topic}}."
1111
}
1212
],
13-
"variables": [
14-
{
15-
"name": "topic",
13+
"variables": {
14+
"topic": {
15+
"type": "string",
1616
"description": "The subject for the FAQ",
1717
"required": true,
1818
"example": "cloud computing"
1919
}
20-
],
20+
},
2121
"output_format": "json",
2222
"output_schema": {
2323
"type": "object",

docs/examples/hello-world.gptp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
"content": "Say hello to {{name}}."
1010
}
1111
],
12-
"variables": [
13-
{
14-
"name": "name",
12+
"variables": {
13+
"name": {
14+
"type": "string",
1515
"description": "The person to greet",
1616
"required": true,
1717
"example": "Alice"
1818
}
19-
]
19+
}
2020
}

docs/examples/story-generator.gptp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
"content": "Write a short story set in {{setting}} with a protagonist named {{protagonist}}."
1111
}
1212
],
13-
"variables": [
14-
{
15-
"name": "setting",
13+
"variables": {
14+
"setting": {
15+
"type": "string",
1616
"description": "Where the story takes place",
1717
"required": true,
1818
"example": "a post-apocalyptic desert"
1919
},
20-
{
21-
"name": "protagonist",
20+
"protagonist": {
21+
"type": "string",
2222
"description": "Name of the main character",
2323
"required": true,
2424
"example": "Mira"
2525
}
26-
],
26+
},
2727
"metadata": {
2828
"tags": ["fiction", "storytelling"],
2929
"created_by": "Prompt Lab",

0 commit comments

Comments
 (0)