Skip to main content

Module artifact

Module artifact 

Source
Expand description

Artifact side panel: a generated document, code file, or data view shown beside the conversation.

An Artifact carries the generated source as StreamedContent (so a panel can render while the agent is still writing), the kind that picks its preview, and the versions the agent has produced. ArtifactPanel renders the header (kind, title, version switcher, close), a Preview / Source switch, the scrolling body, and an optional action row, reporting every intent as an ArtifactPanelEvent keyed by stable IDs. Width, docking, and resizing belong to the application — compose the panel inside the upstream resizable group.

Structs§

Artifact
A generated artifact: title, kind, source, and versions.
ArtifactAction
An application-defined action offered under the artifact.
ArtifactPanel
The side panel for one artifact.
ArtifactVersion
One produced version of an artifact.

Enums§

ArtifactKind
What the artifact is, which decides its preview and glyph.
ArtifactPanelEvent
An interaction emitted by ArtifactPanel.
ArtifactView
Which face of the artifact is shown.