Refactor: load execution profiles from YAML and split prompt definitions into promptdef repository
This commit is contained in:
5
internal/promptdef/testdata/invalid_yaml.yaml
vendored
Normal file
5
internal/promptdef/testdata/invalid_yaml.yaml
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
id: invalid-yaml
|
||||
version: 1.0.0
|
||||
templates:
|
||||
- role: system
|
||||
content: [unclosed bracket
|
||||
11
internal/promptdef/testdata/json_schema_missing_path.yaml
vendored
Normal file
11
internal/promptdef/testdata/json_schema_missing_path.yaml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
id: json-schema-missing-path
|
||||
version: "1.0.0"
|
||||
inputs:
|
||||
- name: transcript
|
||||
required: true
|
||||
templates:
|
||||
- role: user
|
||||
content: "Return JSON"
|
||||
output_format: json
|
||||
validation:
|
||||
validation_mode: json_schema
|
||||
11
internal/promptdef/testdata/missing_id.yaml
vendored
Normal file
11
internal/promptdef/testdata/missing_id.yaml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
version: 1.0.0
|
||||
description: Missing ID
|
||||
inputs:
|
||||
- name: transcript
|
||||
required: true
|
||||
templates:
|
||||
- role: system
|
||||
content: Hello
|
||||
output_format: text
|
||||
validation:
|
||||
validation_mode: none
|
||||
11
internal/promptdef/testdata/negative_timeout.yaml
vendored
Normal file
11
internal/promptdef/testdata/negative_timeout.yaml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
id: negative-timeout
|
||||
version: "1.0.0"
|
||||
inputs:
|
||||
- name: transcript
|
||||
required: true
|
||||
templates:
|
||||
- role: user
|
||||
content: "Say hi"
|
||||
output_format: text
|
||||
validation:
|
||||
validation_mode: none
|
||||
9
internal/promptdef/testdata/no_templates.yaml
vendored
Normal file
9
internal/promptdef/testdata/no_templates.yaml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
id: no-templates
|
||||
version: 1.0.0
|
||||
inputs:
|
||||
- name: transcript
|
||||
required: true
|
||||
templates: []
|
||||
output_format: text
|
||||
validation:
|
||||
validation_mode: none
|
||||
19
internal/promptdef/testdata/valid.yaml
vendored
Normal file
19
internal/promptdef/testdata/valid.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
id: test-profile
|
||||
version: "1.0.0"
|
||||
default_profile: test-exec
|
||||
description: A valid test prompt definition
|
||||
inputs:
|
||||
- name: transcript
|
||||
required: true
|
||||
content_type: text/markdown
|
||||
- name: glossary
|
||||
required: false
|
||||
content_type: text/yaml
|
||||
templates:
|
||||
- role: system
|
||||
content: "You are a helpful assistant."
|
||||
- role: user
|
||||
content: 'Analyze this: {{input "transcript"}}'
|
||||
output_format: markdown
|
||||
validation:
|
||||
validation_mode: basic
|
||||
Reference in New Issue
Block a user