Define typed producer assessment and native execution dependencies

This commit is contained in:
2026-11-21 23:12:01 +00:00
parent b899ee32a6
commit 797320b4da
23 changed files with 657 additions and 707 deletions

View File

@@ -1,7 +1,7 @@
package config
import (
"gitea.maximumdirect.net/eric/notarius/internal/framework/pipeline"
"gitea.maximumdirect.net/eric/notarius/internal/framework/contracts"
"go.maximumdirect.net/promptkit"
)
@@ -19,9 +19,9 @@ type Document struct {
}
type PipelineDocument struct {
Mode *pipeline.ExecutionMode `yaml:"mode,omitempty"`
Mode *contracts.ExecutionMode `yaml:"mode,omitempty"`
MaxAdditionalTurns *int `yaml:"max_additional_turns,omitempty"`
Cache *pipeline.CacheMode `yaml:"cache,omitempty"`
Cache *contracts.CacheMode `yaml:"cache,omitempty"`
LLMProfile *string `yaml:"llm_profile,omitempty"`
Input BindingDocument `yaml:"input"`
Chunk *BindingDocument `yaml:"chunk,omitempty"`
@@ -49,9 +49,9 @@ type ArtifactLaneDocument struct {
// deliberately finite subset so nested validator-only fields are rejected by
// ConfigKit's strict decoder.
type BindingDocument struct {
Mode *pipeline.ExecutionMode `yaml:"mode,omitempty"`
Mode *contracts.ExecutionMode `yaml:"mode,omitempty"`
MaxAdditionalTurns *int `yaml:"max_additional_turns,omitempty"`
Cache *pipeline.CacheMode `yaml:"cache,omitempty"`
Cache *contracts.CacheMode `yaml:"cache,omitempty"`
Module string `yaml:"module"`
LLMProfile *string `yaml:"llm_profile,omitempty"`
Options map[string]any `yaml:"options,omitempty"`