Add PromptKit inspection commands
This commit is contained in:
@@ -18,12 +18,30 @@ import (
|
||||
const adapterPrompt = `prompts:
|
||||
briefing:
|
||||
"1":
|
||||
default_profile: default
|
||||
inputs:
|
||||
- name: topic
|
||||
required: true
|
||||
content_type: text/plain
|
||||
description: "Topic"
|
||||
- name: audience
|
||||
required: false
|
||||
content_type: text/plain
|
||||
description: ""
|
||||
messages:
|
||||
- role: user
|
||||
content: "Hello"
|
||||
output:
|
||||
format: text
|
||||
validation_mode: none
|
||||
empty:
|
||||
"1":
|
||||
messages:
|
||||
- role: user
|
||||
content: "Empty inputs"
|
||||
output:
|
||||
format: text
|
||||
validation_mode: none
|
||||
backends:
|
||||
local:
|
||||
endpoint: "https://example.invalid/v1"
|
||||
@@ -31,6 +49,19 @@ profiles:
|
||||
default:
|
||||
backend: local
|
||||
model: example
|
||||
temperature: 0
|
||||
max_tokens: 0
|
||||
api_key_env: PROMPTKIT_ADAPTER_TEST_KEY
|
||||
extra_params:
|
||||
token: "caller-owned-value"
|
||||
nested:
|
||||
visible: true
|
||||
null_value: null
|
||||
sequence: [first, null, 3]
|
||||
requires-key:
|
||||
backend: local
|
||||
model: example
|
||||
api_key_required: true
|
||||
`
|
||||
|
||||
func adapterEngine(t *testing.T) *promptkit.Engine {
|
||||
|
||||
Reference in New Issue
Block a user