Refactor: split prompt definition from execution settings and migrate run contracts to prompt_* + execution_target
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
id: json-schema-missing-path
|
||||
version: "1.0.0"
|
||||
inputs:
|
||||
- name: transcript
|
||||
required: true
|
||||
templates:
|
||||
- role: user
|
||||
content: "Return JSON"
|
||||
|
||||
3
internal/profile/testdata/missing_id.yaml
vendored
3
internal/profile/testdata/missing_id.yaml
vendored
@@ -1,5 +1,8 @@
|
||||
version: 1.0.0
|
||||
description: Missing ID
|
||||
inputs:
|
||||
- name: transcript
|
||||
required: true
|
||||
templates:
|
||||
- role: system
|
||||
content: Hello
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
id: negative-timeout
|
||||
version: "1.0.0"
|
||||
inputs:
|
||||
- name: transcript
|
||||
required: true
|
||||
templates:
|
||||
- role: user
|
||||
content: "Say hi"
|
||||
model_defaults:
|
||||
timeout_seconds: -1
|
||||
output_format: text
|
||||
validation:
|
||||
validation_mode: none
|
||||
|
||||
3
internal/profile/testdata/no_templates.yaml
vendored
3
internal/profile/testdata/no_templates.yaml
vendored
@@ -1,5 +1,8 @@
|
||||
id: no-templates
|
||||
version: 1.0.0
|
||||
inputs:
|
||||
- name: transcript
|
||||
required: true
|
||||
templates: []
|
||||
output_format: text
|
||||
validation:
|
||||
|
||||
17
internal/profile/testdata/valid.yaml
vendored
17
internal/profile/testdata/valid.yaml
vendored
@@ -1,18 +1,19 @@
|
||||
id: test-profile
|
||||
version: "1.0.0"
|
||||
description: A valid test profile
|
||||
expected_inputs:
|
||||
- transcript
|
||||
- glossary
|
||||
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"}}'
|
||||
model_defaults:
|
||||
model: gpt-4o
|
||||
temperature: 0.7
|
||||
timeout_seconds: 120
|
||||
output_format: markdown
|
||||
validation:
|
||||
validation_mode: basic
|
||||
|
||||
Reference in New Issue
Block a user