batuta/serve/banco/mod.rs
1//! Banco: Local-first AI Workbench HTTP API
2//!
3//! Phase 1 delivers the API skeleton: health, model listing,
4//! chat completions (with SSE streaming), and system info.
5//!
6//! All endpoints reuse the existing serve module orchestration:
7//! `BackendSelector`, `SpilloverRouter`, `CostCircuitBreaker`,
8//! `ContextManager`, and `ChatTemplateEngine`.
9
10pub mod audit;
11pub mod auth;
12pub mod batch;
13pub mod compat_ollama;
14pub mod config;
15pub mod conversations;
16pub mod eval;
17pub mod events;
18pub mod experiment;
19mod handlers;
20mod handlers_audio;
21mod handlers_audit;
22mod handlers_batch;
23mod handlers_completions;
24mod handlers_config;
25mod handlers_conversations;
26mod handlers_data;
27mod handlers_eval;
28mod handlers_experiment;
29#[cfg(feature = "realizar")]
30mod handlers_inference;
31mod handlers_mcp;
32mod handlers_merge;
33mod handlers_metrics;
34mod handlers_models;
35mod handlers_prompts;
36mod handlers_rag;
37mod handlers_recipes;
38mod handlers_registry;
39mod handlers_tokens;
40mod handlers_tools;
41mod handlers_train;
42mod handlers_ui;
43mod handlers_ws;
44#[cfg(feature = "realizar")]
45pub mod inference;
46pub mod mcp;
47pub mod metrics;
48mod middleware;
49pub mod model_slot;
50pub mod prompts;
51pub mod rag;
52pub mod recipes;
53pub mod router;
54mod server;
55pub mod state;
56pub mod storage;
57pub mod tools;
58pub mod training;
59pub mod training_engine;
60pub mod types;
61pub mod ui;
62
63pub use server::start_server;
64pub use state::BancoState;
65
66#[cfg(test)]
67#[path = "types_tests.rs"]
68mod types_tests;
69
70#[cfg(test)]
71#[path = "state_tests.rs"]
72mod state_tests;
73
74#[cfg(test)]
75#[path = "middleware_tests.rs"]
76mod middleware_tests;
77
78#[cfg(test)]
79#[path = "handlers_tests.rs"]
80mod handlers_tests;
81
82#[cfg(test)]
83#[path = "contract_tests.rs"]
84mod contract_tests;
85
86#[cfg(test)]
87#[path = "p0_tests.rs"]
88mod p0_tests;
89
90#[cfg(test)]
91#[path = "p1_tests.rs"]
92mod p1_tests;
93
94#[cfg(test)]
95#[path = "conversations_tests.rs"]
96mod conversations_tests;
97
98#[cfg(test)]
99#[path = "p2_tests.rs"]
100mod p2_tests;
101
102#[cfg(test)]
103#[path = "model_slot_tests.rs"]
104mod model_slot_tests;
105
106#[cfg(test)]
107#[path = "inference_tests.rs"]
108mod inference_tests;
109
110#[cfg(test)]
111#[path = "metrics_tests.rs"]
112mod metrics_tests;
113
114#[cfg(test)]
115#[path = "completions_tests.rs"]
116mod completions_tests;
117
118#[cfg(test)]
119#[path = "mcp_tests.rs"]
120mod mcp_tests;
121
122#[cfg(test)]
123#[path = "audio_tests.rs"]
124mod audio_tests;
125
126#[cfg(test)]
127#[path = "ui_tests.rs"]
128mod ui_tests;
129
130#[cfg(test)]
131#[path = "tools_tests.rs"]
132mod tools_tests;
133
134#[cfg(test)]
135#[path = "events_tests.rs"]
136mod events_tests;
137
138#[cfg(test)]
139#[path = "storage_tests.rs"]
140mod storage_tests;
141
142#[cfg(test)]
143#[path = "recipes_tests.rs"]
144mod recipes_tests;
145
146#[cfg(test)]
147#[path = "rag_tests.rs"]
148mod rag_tests;
149
150#[cfg(test)]
151#[path = "eval_train_tests.rs"]
152mod eval_train_tests;
153
154#[cfg(test)]
155#[path = "experiment_tests.rs"]
156mod experiment_tests;
157
158#[cfg(test)]
159#[path = "training_engine_tests.rs"]
160mod training_engine_tests;
161
162#[cfg(test)]
163#[path = "merge_tests.rs"]
164mod merge_tests;
165
166#[cfg(test)]
167#[path = "registry_tests.rs"]
168mod registry_tests;
169
170#[cfg(test)]
171#[path = "batch_tests.rs"]
172mod batch_tests;