Remove prompt version selectors
This commit is contained in:
@@ -141,7 +141,7 @@ if err != nil {
|
||||
}
|
||||
if len(prompts) > 0 {
|
||||
selected := prompts[0]
|
||||
inspection, err := engine.InspectPrompt(ctx, selected.ID, selected.Version)
|
||||
inspection, err := engine.InspectPrompt(ctx, selected.ID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -286,7 +286,7 @@ declared inputs and output workflow without creating placeholder inputs or
|
||||
resolving a profile:
|
||||
|
||||
```go
|
||||
inspection, err := engine.InspectPrompt(ctx, "meeting.summary", "")
|
||||
inspection, err := engine.InspectPrompt(ctx, "meeting.summary")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -46,8 +46,8 @@ admission, or model collaborators. The root
|
||||
exact contract.
|
||||
|
||||
`InspectRequirements` uses the same metadata selection to resolve the
|
||||
request-profile/default identity, then obtains the exact captured requirement
|
||||
snapshot by the selected prompt ID and version. The analyzer receives only
|
||||
request-profile/default identity, then obtains the captured requirement
|
||||
snapshot by the selected prompt ID. The analyzer receives only
|
||||
those identity fields rather than an execution definition. It analyzes the
|
||||
snapshot with the supplied caller variables and normalized direct-session
|
||||
bypass; it does not resolve target readiness or enter the preparation
|
||||
|
||||
@@ -46,7 +46,7 @@ real loader and final-value handoff.
|
||||
|
||||
## Prompt Definitions
|
||||
|
||||
The configuration adapter indexes each prompt by exact ID and version,
|
||||
The configuration adapter indexes each prompt by exact ID,
|
||||
materializes file-backed message content using the exact effective field's
|
||||
origin and resource context, and checks static message/session template syntax
|
||||
at construction. It stores captured content, compiled templates, declared
|
||||
@@ -65,7 +65,7 @@ configuration would replace origins of unchanged content-file fields.
|
||||
|
||||
The runner selects full definitions from this index for preparation and uses
|
||||
captured prompt metadata for `InspectPrompt` and `InspectRequirements`; the
|
||||
internal requirement snapshot lookup selects by exact prompt ID and version.
|
||||
internal requirement snapshot lookup uses the selected prompt ID alone.
|
||||
These paths do not rescan configuration or reopen message files. `InspectPrompt`
|
||||
returns declared metadata without rendering or resolving profile, input, or
|
||||
schema resources, and its public shape and prompt hashes do not include the
|
||||
@@ -73,8 +73,8 @@ captured presence state. Runtime rendering still checks request variables and
|
||||
input helpers. The [prompt adapter tests](../../internal/configuration/prompts_test.go)
|
||||
cover resource origins, context containment, capture, and selection.
|
||||
|
||||
The configuration adapter shares exact ID/version selection across its
|
||||
internal prompt lookups. The execution snapshot lookup returns an owned prompt
|
||||
The configuration adapter shares ID-only selection across its internal prompt
|
||||
lookups. The execution snapshot lookup returns an owned prompt
|
||||
definition and cached hash; metadata inspection returns owned input metadata
|
||||
without copying execution templates. Profile selection likewise has an
|
||||
identity-only lookup for consumers that do not need the execution target,
|
||||
|
||||
@@ -416,6 +416,14 @@ Validation: `GOWORK=off go test ./...` and focused vet of modified packages.
|
||||
Search declarations/call sites for remaining selection/ambiguity logic; descriptive
|
||||
label references are valid and should not be blanket-deleted.
|
||||
|
||||
Completion: request-side version selectors and version parameters have been
|
||||
removed from prompt lookup, inspection, requirement analysis, and smoke-test
|
||||
selection. Generated structured-schema names now derive from the prompt ID;
|
||||
result-side descriptive label fields remain. Updated the consumer guide and
|
||||
GoDoc to reflect ID-only selection. Validation passed: `GOWORK=off go test
|
||||
./...`, focused `GOWORK=off go vet` for modified packages,
|
||||
`GOWORK=off python3 scripts/check-examples.py`, and `git diff --check`.
|
||||
|
||||
## Stage 6: Carry Optional Prompt Labels Through Results
|
||||
|
||||
Scope: presence-aware metadata across internal values and the facade.
|
||||
|
||||
Reference in New Issue
Block a user