mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-27 01:22:18 +00:00
Move the generic async coroutine out of the host crate into litellm-coroutine, with its requirements documented in the crate's AGENTS.md. RouteMachine becomes CallMachine on top of it, host protocol ops move to host/src/protocol.rs, and the messages, OCR, host-python, python-bridge and legacy callbacks crates adopt the new types. Adds error definition rules to litellm-rust/AGENTS.md. Co-authored-by: Yujong Lee <yujong@berri.ai>
12 lines
355 B
Rust
12 lines
355 B
Rust
//! Async coroutines on stable Rust whose every yield carries its own typed [`Reply`].
|
|
//! See `AGENTS.md` for the requirement, the alternatives and the contracts.
|
|
|
|
mod co;
|
|
mod coroutine;
|
|
mod error;
|
|
mod reply;
|
|
|
|
pub use co::Co;
|
|
pub use coroutine::{Coroutine, CoroutineState};
|
|
pub use error::{Abandoned, ResumeError};
|
|
pub use reply::{Answer, Reply, reply};
|