Expose provider-neutral PromptKit inspection

This commit is contained in:
2026-10-04 13:26:54 +00:00
parent a904e4d841
commit c848befb53
4 changed files with 308 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ type PromptKitProfileInspection struct {
Model string
CredentialEnvironment string
CredentialRequired bool
EffectiveModelParams PromptKitEffectiveModelParams `json:"effective_model_params"`
}
type PromptKitProfileInspectionError struct {
@@ -110,6 +111,7 @@ func (i *PromptKitProfileInspector) InspectProfile(ctx context.Context, profileI
Model: strings.TrimSpace(inspection.EffectiveModelParams.Model),
CredentialEnvironment: strings.TrimSpace(inspection.EffectiveModelParams.APIKeyEnv),
CredentialRequired: inspection.APIKeyRequired,
EffectiveModelParams: promptKitEffectiveModelParams(inspection.EffectiveModelParams),
}, nil
}