Skip to main content

Module asset

Module asset 

Source
Expand description

Asset management types for file attachments and content analysis.

These types are shared across the provider layer and the devboy-assets crate, providing a unified abstraction for working with attached files (screenshots, logs, configs, etc.) across different providers.

See ADR-010 for the full design rationale.

Structs§

AssetAnalysis
Result of analyzing an asset through the processor pipeline.
AssetCapabilities
Per-provider capability matrix for asset operations.
AssetInput
Input data for uploading a new asset.
AssetMeta
Metadata describing an asset — used for listings and enriched responses.
ContextCapabilities
CRUD capabilities for a single context kind.
MarkdownAttachment
A single attachment reference found in a markdown document.
SemanticAnalysis
Result of a Level 3 semantic (LLM-based) analysis.

Enums§

AssetContext
Context to which an asset is attached.
AssetContextKind
Category of an AssetContext — used for capability lookup.
ContentKind
High-level kind of content stored in an asset.

Functions§

filename_from_url
Derive a filename from the final path segment of a URL. Query strings and fragments are stripped. Returns "attachment" if nothing sensible can be extracted (e.g. the URL has no path beyond the host).
parse_markdown_attachments
Extract attachments embedded in a markdown string.