Use prompt-defined structured output contracts

This commit is contained in:
2026-11-23 04:32:15 +00:00
parent 9977cd9130
commit 6ca5f89356
31 changed files with 299 additions and 445 deletions

View File

@@ -6,7 +6,6 @@ import (
"time"
"gitea.maximumdirect.net/eric/audita/v4/internal/framework/outcomes"
"gitea.maximumdirect.net/eric/audita/v4/internal/framework/responseschema"
)
// DiagnosticContext identifies the logical call without examining rendered text.
@@ -23,15 +22,14 @@ type DiagnosticContext struct {
RepairAttempt *int `json:"repair_attempt,omitempty"`
}
// Request names an embedded prompt and response schema. Profile selection and
// Request names a prompt. Profile selection and
// credentials are supplied by the role-bound runtime client.
type Request struct {
PromptID string `json:"prompt_id"`
Variables map[string]string `json:"variables"`
Schema responseschema.Key `json:"schema"`
Context DiagnosticContext `json:"context"`
CaptureExchange bool `json:"-"`
CaptureDiagnostics bool `json:"-"`
PromptID string `json:"prompt_id"`
Variables map[string]string `json:"variables"`
Context DiagnosticContext `json:"context"`
CaptureExchange bool `json:"-"`
CaptureDiagnostics bool `json:"-"`
}
// PromptMetadata is the execution snapshot returned by the runtime when available.