Remove AI config approval flow
This commit is contained in:
@@ -25,8 +25,11 @@ type AIConfigRecommendation struct {
|
||||
Key string
|
||||
SuggestedConfig string
|
||||
DiffSummary string
|
||||
DiffID string
|
||||
ExpiresAt string
|
||||
}
|
||||
|
||||
type AIConfigExecution struct {
|
||||
Status string
|
||||
Job Job
|
||||
}
|
||||
|
||||
type AIInvocationSafeError struct {
|
||||
@@ -43,6 +46,7 @@ type AIInvocationResponse struct {
|
||||
Status string
|
||||
Recommendation string
|
||||
ConfigRecommendation *AIConfigRecommendation
|
||||
ConfigExecution *AIConfigExecution
|
||||
Usage AIInvocationUsage
|
||||
Error *AIInvocationSafeError
|
||||
}
|
||||
@@ -64,6 +68,11 @@ func CopyAIInvocationResponse(response AIInvocationResponse) AIInvocationRespons
|
||||
recommendation := *response.ConfigRecommendation
|
||||
response.ConfigRecommendation = &recommendation
|
||||
}
|
||||
if response.ConfigExecution != nil {
|
||||
execution := *response.ConfigExecution
|
||||
execution.Job = CopyJob(execution.Job)
|
||||
response.ConfigExecution = &execution
|
||||
}
|
||||
if response.Error != nil {
|
||||
errorCopy := *response.Error
|
||||
errorCopy.Details = CopyStringSlice(errorCopy.Details)
|
||||
|
||||
Reference in New Issue
Block a user