mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-24 22:09:56 +00:00
core/src/machine was route-neutral runtime code sitting among route surfaces, and the workspace had two modules named machine. It now lives in litellm-host beside the contract it implements, so core only holds routes. The OCR conversion from MachineFault moves to litellm-llms because the orphan rule no longer allows it in core
12 lines
520 B
Rust
12 lines
520 B
Rust
//! The contract between a native call and the host runtime that drives it.
|
|
//!
|
|
//! A host is whatever sits on the far side of the language boundary: CPython today,
|
|
//! another runtime later. Core runs each route on a [`machine::RouteMachine`] and never learns
|
|
//! which host is on the other end. The machine yields [`host::HostOp`]s; a driver answers
|
|
//! them, observes [`event::CallEvent`]s and may rewrite the wire request before it is sent.
|
|
|
|
pub mod event;
|
|
pub mod host;
|
|
pub mod machine;
|
|
pub mod route;
|
|
pub mod run;
|