feat: add parameter preprocessing audit trail
This commit is contained in:
@@ -488,6 +488,24 @@ type TaskAttempt struct {
|
||||
FinishedAt string `json:"finishedAt,omitempty"`
|
||||
}
|
||||
|
||||
type TaskParamPreprocessingLog struct {
|
||||
ID string `json:"id"`
|
||||
TaskID string `json:"taskId"`
|
||||
AttemptID string `json:"attemptId,omitempty"`
|
||||
AttemptNo int `json:"attemptNo,omitempty"`
|
||||
ModelType string `json:"modelType,omitempty"`
|
||||
PlatformID string `json:"platformId,omitempty"`
|
||||
PlatformModelID string `json:"platformModelId,omitempty"`
|
||||
ClientID string `json:"clientId,omitempty"`
|
||||
Changed bool `json:"changed"`
|
||||
ChangeCount int `json:"changeCount"`
|
||||
ActualInput map[string]any `json:"actualInput,omitempty"`
|
||||
ConvertedOutput map[string]any `json:"convertedOutput,omitempty"`
|
||||
Changes []any `json:"changes,omitempty"`
|
||||
ModelSnapshot map[string]any `json:"model,omitempty"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
}
|
||||
|
||||
func (s *Store) ListPlatforms(ctx context.Context) ([]Platform, error) {
|
||||
rows, err := s.pool.Query(ctx, `
|
||||
SELECT id::text, provider, platform_key, name, COALESCE(internal_name, ''), COALESCE(base_url, ''), auth_type, status, priority,
|
||||
|
||||
Reference in New Issue
Block a user