pub enum ArtifactKind {
Image {
width: Option<u32>,
height: Option<u32>,
format: Option<String>,
frame_index: Option<u32>,
},
Video {
width: Option<u32>,
height: Option<u32>,
fps: Option<f32>,
duration_secs: Option<f32>,
format: Option<String>,
frame_count: Option<u32>,
},
Binary {
mime_type: Option<String>,
byte_size: Option<u64>,
},
Text {
encoding: Option<String>,
line_count: Option<u64>,
},
MemorySummary {
entry_count: usize,
entry_ids: Vec<String>,
},
}Expand description
Semantic kind of an artifact produced by a connector or agent.
Stored on Artifact as an optional field. When absent, the artifact is
treated as a generic file. The ta draft view renderer uses this to pick
the appropriate display format (e.g. suppress binary diffs for images).
§Extensibility
Future connectors can add new variants here (e.g. Audio, PointCloud).
The Image and Video variants are intentionally generic — they are not
tied to Unreal Engine or any other specific connector.
Variants§
Image
A raster image artifact (PNG, EXR, JPEG, …).
Fields are optional — connectors fill in what they know. Width and
height are in pixels; frame_index is zero-based within a sequence.
Fields
Video
A video artifact (MP4, MOV, WebM, …) produced by render pipelines.
Text diff is suppressed — ta draft view shows a metadata summary like
“Video: 1920×1080, 24fps, 6.2s, MP4” instead of binary content.
Fields
Binary
An opaque binary artifact (compiled output, archive, model weights, …).
Text diff is suppressed — ta draft view shows a hex summary or
(binary file, N bytes) instead.
Fields
Text
A raw text artifact (generated script, config file, data file, …).
Full unified diff is rendered in ta draft view.
Fields
MemorySummary
A memory summary artifact produced by an analysis/learning goal run (v0.15.13.2).
Produced when ta draft build detects an empty overlay diff but finds memory
entries written by this goal run. The changeset holds a rendered summary of all
entries (key, scope, value) for human review.
On approve: entries remain in the store — they were written during the run.
On deny: entries are removed from the store using entry_ids.
Implementations§
Source§impl ArtifactKind
impl ArtifactKind
Sourcepub fn is_image(&self) -> bool
pub fn is_image(&self) -> bool
Returns true if this is an image kind (binary; diff should be suppressed).
Sourcepub fn is_video(&self) -> bool
pub fn is_video(&self) -> bool
Returns true if this is a video kind (binary; diff should be suppressed).
Sourcepub fn is_binary(&self) -> bool
pub fn is_binary(&self) -> bool
Returns true if this is a binary kind (diff should be suppressed).
Sourcepub fn is_text(&self) -> bool
pub fn is_text(&self) -> bool
Returns true if this is a text kind (full diff should be rendered).
Sourcepub fn is_memory_summary(&self) -> bool
pub fn is_memory_summary(&self) -> bool
Returns true if this is a memory summary kind (no file diff; rendered as entry list).
Sourcepub fn display_label(&self) -> String
pub fn display_label(&self) -> String
Returns a short human-readable label for display (e.g. "MP4 video", "PNG image").
Sourcepub fn video_metadata_summary(&self) -> String
pub fn video_metadata_summary(&self) -> String
Returns a compact metadata summary for display in ta draft view.
For Video: "Video: 1920×1080, 24fps, 6.2s, MP4" (omits unknown fields).
For other kinds: returns an empty string.
Trait Implementations§
Source§impl Clone for ArtifactKind
impl Clone for ArtifactKind
Source§fn clone(&self) -> ArtifactKind
fn clone(&self) -> ArtifactKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more