Skip to main content

agent_engine/session/
mod.rs

1//! Session actor surface (Phase 2 daemon mode).
2//!
3//! One `SessionActor` (A1) owns THE `Runtime` + `ConversationState` for a
4//! conversation and runs its turn machine; clients talk to it through a
5//! `ClientTransport` — `LocalTransport` in-process (same `StreamEvent`
6//! values, never serialised = byte-identical), `SocketTransport` (B2) over
7//! the daemon UDS. `agent-tui` must never be a dependency of anything here.
8
9pub mod actor;
10pub mod actor_cmds;
11pub mod budgets;
12pub mod cache_keepwarm;
13pub mod client_args;
14pub mod display;
15pub mod driver;
16pub mod handle;
17mod persister;
18pub(crate) mod session_start;
19/// Test-only controls of `on_session_start` scheduling (`cfg(test)` / the
20/// `testing` feature).
21#[cfg(any(test, feature = "testing"))]
22pub use session_start::testing as session_start_testing;
23pub mod socket_transport;
24pub mod transport;
25pub mod types;
26pub mod view;
27pub mod wire;
28
29pub use actor::{SessionActor, SessionTask};
30pub use display::{DisplayItem, DisplayTail};
31pub use handle::SessionHandle;
32pub use socket_transport::SocketTransport;
33pub use transport::{ClientTransport, LocalTransport, TransportError};
34pub use types::*;
35pub use view::{RuntimeRead, RuntimeView};