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
43
44
45
46
47
48
49
50
51
52
53
54
55
//! This module defines shared data structures and components used across various
//! `HuggingFace` API groups. It includes common types for requests, responses,
//! and specific components like inference, embeddings, and model-related structures.
//!
//! # Component Organization
//!
//! Components are logically organized into the following groups:
//!
//! ## Core Components
//! Foundation components used across all API endpoints:
//! - [`models`] - `HuggingFace` model definitions
//! - [`wire_types`] - Wire-format types — error response, metadata, task type
//! - [`input`] - Common input handling
//! - [`output`] - Common output handling
//!
//! ## Endpoint Components
//!
//! ### Text Generation
//! - [`inference_shared`] - Text generation and inference components
//!
//! ### Embeddings
//! - [`embeddings`] - Text embeddings
//!
//! ### Tools
//! - [`tools`] - Tool definitions for function calling
// === CORE COMPONENTS ===
// === TEXT GENERATION ===
// === EMBEDDINGS ===
// === TOOLS ===
cratemod_interface!