Files
fn_registry/functions/ml/image_gen_result.go
egutierrez e3c8979e8d chore: auto-commit (95 archivos)
- cmd/fn/doctor.go
- cmd/fn/main.go
- cpp/apps/primitives_gallery/playground/tables/CMakeLists.txt
- cpp/apps/primitives_gallery/playground/tables/data_table.cpp
- cpp/apps/primitives_gallery/playground/tables/data_table_logic.cpp
- cpp/apps/primitives_gallery/playground/tables/data_table_logic.h
- cpp/apps/primitives_gallery/playground/tables/self_test.cpp
- cpp/apps/primitives_gallery/playground/tables/tql.cpp
- cpp/apps/primitives_gallery/playground/tables/viz.cpp
- cpp/apps/primitives_gallery/playground/tables/viz.h
- ...

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 00:50:34 +02:00

13 lines
481 B
Go

package ml
// ImageGenResult contiene la imagen generada y su metadata de ejecucion.
// ImageBytes transporta los bytes raw del PNG y se excluye del JSON
// (campo json:"-") porque viaja por canal binario separado.
type ImageGenResult struct {
ImageBytes []byte `json:"-"`
Format string `json:"format"`
Meta map[string]any `json:"meta"`
DurationMs int64 `json:"duration_ms"`
VramPeakMb *int `json:"vram_peak_mb,omitempty"`
}