1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! # adk-artifact
//!
//! Binary artifact storage for ADK agents.
//!
//! ## Overview
//!
//! This crate provides artifact storage for binary data:
//!
//! - [`InMemoryArtifactService`] - Simple in-memory storage
//! - [`ArtifactService`] - Trait for custom backends
//! - [`ScopedArtifacts`] - Session-scoped artifact access
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use adk_artifact::InMemoryArtifactService;
//!
//! let service = InMemoryArtifactService::new();
//!
//! // Artifacts are stored with app/user/session scope
//! // Supports versioning and MIME type detection
//! ```
//!
//! ## Use Cases
//!
//! - Store generated images, PDFs, audio
//! - Cache intermediate results
//! - Share binary data between agent turns
pub use FileArtifactService;
pub use InMemoryArtifactService;
pub use ScopedArtifacts;
pub use ;