Run processing from the prepared invocation
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
||||
|
||||
"gitea.maximumdirect.net/eric/audita/v4/internal/core/diagnostics"
|
||||
"gitea.maximumdirect.net/eric/audita/v4/internal/core/reporting"
|
||||
"gitea.maximumdirect.net/eric/audita/v4/internal/core/schema"
|
||||
"gitea.maximumdirect.net/eric/audita/v4/internal/framework/llm"
|
||||
"gitea.maximumdirect.net/eric/audita/v4/internal/framework/outcomes"
|
||||
"gitea.maximumdirect.net/eric/audita/v4/internal/framework/processreport"
|
||||
@@ -15,9 +14,10 @@ import (
|
||||
"gitea.maximumdirect.net/eric/audita/v4/internal/modules"
|
||||
)
|
||||
|
||||
func executePipeline(ctx context.Context, loaded *processInputs, prepared *preparedProcess, normalized *schema.Transcript, warn func(error), progress func(string)) (processResult, error) {
|
||||
cfg := &loaded.Configuration.Config.Application
|
||||
specs := prepared.Prepared.Plan.Specs
|
||||
func executePipeline(ctx context.Context, prepared *preparedProcess, warn func(error), progress func(string)) (processResult, error) {
|
||||
loaded := prepared.Invocation.Loaded
|
||||
cfg := prepared.Invocation.Plan.Config
|
||||
specs := prepared.Invocation.Plan.Specs
|
||||
debug := prepared.Prepared.Debug
|
||||
evidence := runner.EvidenceSelection{Reports: cfg.Reporting.Enabled, Debug: debug != nil}
|
||||
var observer *llm.ObservationCollector
|
||||
@@ -62,7 +62,7 @@ func executePipeline(ctx context.Context, loaded *processInputs, prepared *prepa
|
||||
interactions = writer
|
||||
}
|
||||
output, runErr := runner.New(modules.NewFactory()).Run(ctx, runner.RunInput{
|
||||
Sections: prepared.Prepared.Plan.Sections, Transcript: normalized, ModuleSpecs: specs,
|
||||
Plan: prepared.Invocation.Plan,
|
||||
Interactions: interactions, Evidence: &evidence, Progress: runnerProgress(progress),
|
||||
})
|
||||
if debug != nil {
|
||||
|
||||
Reference in New Issue
Block a user