Remove public prompt version metadata
This commit is contained in:
21
types.go
21
types.go
@@ -87,8 +87,7 @@ const (
|
||||
type RunRequest struct {
|
||||
// PromptID is the required prompt identifier. A namespace-scoped engine view
|
||||
// qualifies a slashless caller value; otherwise it selects the exact
|
||||
// configured ID. Descriptive prompt-version labels do not participate in
|
||||
// selection.
|
||||
// configured ID.
|
||||
PromptID string
|
||||
// ProfileID selects an execution profile. A namespace-scoped engine view
|
||||
// qualifies a slashless caller value. When empty, the prompt's default
|
||||
@@ -163,11 +162,6 @@ type RunRequest struct {
|
||||
type PreparedRun struct {
|
||||
// PromptID is the selected prompt identifier.
|
||||
PromptID string `json:"prompt_id"`
|
||||
// PromptVersion is the selected definition's descriptive version label and
|
||||
// never participates in prompt selection. Nil means no label was declared; a
|
||||
// non-nil empty string is explicit. JSON omits nil and preserves a declared
|
||||
// empty string.
|
||||
PromptVersion *string `json:"prompt_version,omitempty"`
|
||||
// PromptHash is an opaque equality value for the selected definition.
|
||||
PromptHash string `json:"prompt_hash,omitempty"`
|
||||
// SelectedProfileID is the explicit request profile or prompt default that
|
||||
@@ -224,11 +218,6 @@ type RunResult struct {
|
||||
Validation ValidationResult `json:"validation"`
|
||||
// PromptID is the selected prompt identifier.
|
||||
PromptID string `json:"prompt_id"`
|
||||
// PromptVersion is the selected definition's descriptive version label and
|
||||
// never participates in prompt selection. Nil means no label was declared; a
|
||||
// non-nil empty string is explicit. JSON omits nil and preserves a declared
|
||||
// empty string.
|
||||
PromptVersion *string `json:"prompt_version,omitempty"`
|
||||
// PromptHash is the same opaque definition equality value exposed by
|
||||
// PreparedRun.
|
||||
PromptHash string `json:"prompt_hash,omitempty"`
|
||||
@@ -404,19 +393,13 @@ type PromptInputDefinition struct {
|
||||
// PromptInspection is the caller-owned result of [Engine.InspectPrompt].
|
||||
// It has no stable JSON representation.
|
||||
//
|
||||
// PromptVersion is caller-owned metadata: nil means no label was declared and
|
||||
// a non-nil empty string is explicit. Inputs contains copied declared input
|
||||
// metadata in definition order.
|
||||
// Inputs contains copied declared input metadata in definition order.
|
||||
// OutputContract is the normalized contract declared by the prompt definition,
|
||||
// rather than a request-level effective override. PromptHash is opaque.
|
||||
type PromptInspection struct {
|
||||
// PromptID is the exact selected prompt ID after any namespace-view
|
||||
// qualification.
|
||||
PromptID string
|
||||
// PromptVersion is the selected definition's descriptive version label and
|
||||
// never participates in definition selection. Nil means no label was
|
||||
// declared; a non-nil empty string is an explicit label.
|
||||
PromptVersion *string
|
||||
// PromptHash is the opaque equality value for the selected definition.
|
||||
PromptHash string
|
||||
// DefaultProfileID is declared metadata and is not resolved by inspection.
|
||||
|
||||
Reference in New Issue
Block a user