api_huggingface 0.4.1

HuggingFace's API for accessing large language models (LLMs) and embeddings.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# components

### Purpose

Shared request/response types used across all API domains.

### Responsibility

| File | Purpose |
|------|---------|
| `mod.rs` | Module root — re-exports all component types |
| `wire_types.rs` | Wire-format types — `ErrorResponse`, `ResponseMetadata`, `TaskType` |
| `embeddings.rs` | Embedding request/response types and options |
| `inference_shared.rs` | Shared inference request/response types |
| `input.rs` | Input parameter types — `InferenceParameters`, `BinaryClassificationInput` |
| `models.rs` | Model identifier constants and `Models` struct |
| `output.rs` | Output response types — `InferenceResponse`, `EmbeddingResponse` |
| `tools.rs` | Tool/function calling types |