Migrate native PromptKit test fixtures
This commit is contained in:
@@ -9,15 +9,14 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
promptkit "go.maximumdirect.net/promptkit"
|
||||
"go.maximumdirect.net/ckconfig"
|
||||
commandkit "go.maximumdirect.net/commandkit"
|
||||
promptkit "go.maximumdirect.net/promptkit"
|
||||
"go.yaml.in/yaml/v4"
|
||||
)
|
||||
|
||||
const requirementsCommandPrompt = `prompts:
|
||||
briefing:
|
||||
version: "2"
|
||||
- id: briefing
|
||||
default_profile: editorial
|
||||
session_id: '{{input "session-only"}} {{.session_variable}}'
|
||||
messages:
|
||||
@@ -26,8 +25,7 @@ const requirementsCommandPrompt = `prompts:
|
||||
output:
|
||||
format: text
|
||||
validation_mode: none
|
||||
required-variable:
|
||||
version: "1"
|
||||
- id: required-variable
|
||||
default_profile: editorial
|
||||
messages:
|
||||
- role: user
|
||||
@@ -35,7 +33,7 @@ const requirementsCommandPrompt = `prompts:
|
||||
output:
|
||||
format: text
|
||||
validation_mode: none
|
||||
ambiguous-first:
|
||||
- id: ambiguous-first
|
||||
default_profile: editorial
|
||||
messages:
|
||||
- role: user
|
||||
@@ -43,7 +41,7 @@ const requirementsCommandPrompt = `prompts:
|
||||
output:
|
||||
format: text
|
||||
validation_mode: none
|
||||
ambiguous-second:
|
||||
- id: ambiguous-second
|
||||
default_profile: editorial
|
||||
messages:
|
||||
- role: user
|
||||
@@ -52,10 +50,10 @@ const requirementsCommandPrompt = `prompts:
|
||||
format: text
|
||||
validation_mode: none
|
||||
backends:
|
||||
local:
|
||||
- id: local
|
||||
endpoint: "https://example.invalid/v1"
|
||||
profiles:
|
||||
editorial:
|
||||
- id: editorial
|
||||
backend: local
|
||||
model: example
|
||||
api_key_required: true
|
||||
|
||||
Reference in New Issue
Block a user