Migrate prompt integration to PromptKit 0.16
This commit is contained in:
@@ -19,8 +19,6 @@ type PromptRequest struct {
|
||||
Selection ckconfig.Selection
|
||||
// ID is the selected named prompt.
|
||||
ID string
|
||||
// Version carries the explicitly supplied prompt version, if present.
|
||||
Version commandkit.Supplied[string]
|
||||
}
|
||||
|
||||
// ProfileRequest selects one named profile for inspection.
|
||||
@@ -265,7 +263,7 @@ func FromEngine[I, S any](load func(context.Context, ckconfig.Selection, I, S) (
|
||||
if err != nil {
|
||||
return commandkit.Acquired[*promptkit.PromptInspection]{Diagnostics: diagnostics}, err
|
||||
}
|
||||
inspection, err := engine.InspectPrompt(ctx, request.ID, request.Version.Value)
|
||||
inspection, err := engine.InspectPrompt(ctx, request.ID)
|
||||
return commandkit.Acquired[*promptkit.PromptInspection]{Value: inspection, Diagnostics: diagnostics}, err
|
||||
},
|
||||
InspectProfile: func(ctx context.Context, request ProfileRequest, input I, state S) (commandkit.Acquired[*promptkit.ProfileInspection], error) {
|
||||
|
||||
Reference in New Issue
Block a user