Migrate maintained PromptKit definitions and examples
This commit is contained in:
72
testdata/promptkit-v0.9/prompts/complete-v1.yaml
vendored
72
testdata/promptkit-v0.9/prompts/complete-v1.yaml
vendored
@@ -1,31 +1,41 @@
|
||||
id: compat.complete
|
||||
version: "1.0.0"
|
||||
description: Exercise the complete Promptkit v0.9 prompt-definition surface.
|
||||
default_profile: custom-derived
|
||||
session_id: 'fixture-{{.topic}}'
|
||||
inputs:
|
||||
- name: source
|
||||
required: true
|
||||
content_type: text/markdown
|
||||
description: Source material rendered by a file-backed message.
|
||||
- name: context
|
||||
required: false
|
||||
content_type: text/plain
|
||||
description: Optional caller context.
|
||||
messages:
|
||||
- role: developer
|
||||
content: 'Use the topic {{.topic}}.'
|
||||
cache_control:
|
||||
type: ephemeral
|
||||
ttl: 1h
|
||||
- role: system
|
||||
content_file: ./messages/complete.system.md
|
||||
- role: user
|
||||
content_file: ./messages/complete.user.md
|
||||
- role: assistant
|
||||
content: Return one JSON object.
|
||||
output:
|
||||
format: json
|
||||
validation_mode: json_schema
|
||||
schema_path: complete.schema.json
|
||||
repair_attempts: 2
|
||||
prompts:
|
||||
compat.complete:
|
||||
"1.0.0":
|
||||
description: Exercise the complete Promptkit v0.9 prompt-definition surface.
|
||||
default_profile: custom-derived
|
||||
session_id: 'fixture-{{.topic}}'
|
||||
inputs:
|
||||
- name: source
|
||||
required: true
|
||||
content_type: text/markdown
|
||||
description: Source material rendered by a file-backed message.
|
||||
- name: context
|
||||
required: false
|
||||
content_type: text/plain
|
||||
description: Optional caller context.
|
||||
messages:
|
||||
- role: developer
|
||||
content: 'Use the topic {{.topic}}.'
|
||||
cache_control:
|
||||
type: ephemeral
|
||||
ttl: 1h
|
||||
- role: system
|
||||
content_file: ./messages/complete.system.md
|
||||
- role: user
|
||||
content_file: ./messages/complete.user.md
|
||||
- role: assistant
|
||||
content: Return one JSON object.
|
||||
output:
|
||||
format: json
|
||||
validation_mode: json_schema
|
||||
schema_path: complete.schema.json
|
||||
repair_attempts: 2
|
||||
"2.0.0":
|
||||
default_profile: endpoint-only
|
||||
messages:
|
||||
- role: user
|
||||
content: Version two has no declared inputs.
|
||||
output:
|
||||
format: text
|
||||
validation_mode: basic
|
||||
repair_attempts: 1
|
||||
|
||||
10
testdata/promptkit-v0.9/prompts/complete-v2.yml
vendored
10
testdata/promptkit-v0.9/prompts/complete-v2.yml
vendored
@@ -1,10 +0,0 @@
|
||||
id: compat.complete
|
||||
version: "2.0.0"
|
||||
default_profile: endpoint-only
|
||||
messages:
|
||||
- role: user
|
||||
content: Version two has no declared inputs.
|
||||
output:
|
||||
format: text
|
||||
validation_mode: basic
|
||||
repair_attempts: 1
|
||||
21
testdata/promptkit-v0.9/prompts/json.yaml
vendored
21
testdata/promptkit-v0.9/prompts/json.yaml
vendored
@@ -1,10 +1,11 @@
|
||||
id: compat.json
|
||||
version: "1.0.0"
|
||||
default_profile: endpoint-only
|
||||
messages:
|
||||
- role: user
|
||||
content: Return JSON.
|
||||
output:
|
||||
format: json
|
||||
validation_mode: json
|
||||
repair_attempts: 0
|
||||
prompts:
|
||||
compat.json:
|
||||
"1.0.0":
|
||||
default_profile: endpoint-only
|
||||
messages:
|
||||
- role: user
|
||||
content: Return JSON.
|
||||
output:
|
||||
format: json
|
||||
validation_mode: json
|
||||
repair_attempts: 0
|
||||
|
||||
21
testdata/promptkit-v0.9/prompts/none.yaml
vendored
21
testdata/promptkit-v0.9/prompts/none.yaml
vendored
@@ -1,10 +1,11 @@
|
||||
id: compat.none
|
||||
version: "1.0.0"
|
||||
default_profile: endpoint-only
|
||||
messages:
|
||||
- role: user
|
||||
content: Return text.
|
||||
output:
|
||||
format: text
|
||||
validation_mode: none
|
||||
repair_attempts: 0
|
||||
prompts:
|
||||
compat.none:
|
||||
"1.0.0":
|
||||
default_profile: endpoint-only
|
||||
messages:
|
||||
- role: user
|
||||
content: Return text.
|
||||
output:
|
||||
format: text
|
||||
validation_mode: none
|
||||
repair_attempts: 0
|
||||
|
||||
Reference in New Issue
Block a user