feat: Engine-Adaptervertrag, llama.cpp-Adapter und Attrappe (M2.2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 17:05:03 +01:00
parent 3e6148419b
commit ada5745c53
14 changed files with 1672 additions and 4 deletions

View File

@ -0,0 +1,24 @@
//! Engine-Adaptervertrag, Prozesssteuerung und Adapter für Nexus.
//!
//! Der Vertrag steht in [`Engine`]. Adapter:
//! - [`LlamaCppEngine`]: startet `llama-server` als verwalteten Prozess (Managed).
//! - [`MockEngine`]: Attrappe ohne Prozesse für Scheduler- und Vertragstests.
//!
//! Stand M2.2: Die Weiterleitung von Anfragen (`forward`) kommt mit der API
//! (M2.3). Bis dahin liefert [`Engine::endpoint`] die Basis-URL, an die der
//! Aufrufer selbst sendet.
mod engine;
mod llama;
mod mock;
mod process;
mod types;
pub use engine::Engine;
pub use llama::{LlamaCppConfig, LlamaCppEngine};
pub use mock::{MockConfig, MockEngine};
pub use process::process_exists;
pub use types::{
AdapterError, Capabilities, DiscoveredArtifact, Endpoint, Health, InstanceHandle, Mode,
ProfileSpec, Protocol, Result, Usage,
};