pub struct AcpServer;Expand description
ACP stdio JSON-RPC server.
Implementations§
Source§impl AcpServer
impl AcpServer
Sourcepub async fn run(llm: Option<Arc<dyn ChatProvider>>)
pub async fn run(llm: Option<Arc<dyn ChatProvider>>)
Run the server on real stdio. Implements 60-second idle timeout (S1-C9): if no input arrives on stdin for 60 seconds, shuts down cleanly with exit code 0 and logs “ServerShutdown” to stderr. EOF (e.g. /dev/null) causes a brief sleep then retry — the server never exits on EOF alone.
llm is the shared chat provider used to construct AgentRuntimes for
new sessions. Pass None only when you only need initialize support
(e.g. smoke tests, idle-timeout tests).
Sourcepub async fn run_io<R, W>(
reader: R,
writer: W,
llm: Option<Arc<dyn ChatProvider>>,
)
pub async fn run_io<R, W>( reader: R, writer: W, llm: Option<Arc<dyn ChatProvider>>, )
Run the server on generic reader/writer (testable). Exits on EOF.
Auto Trait Implementations§
impl Freeze for AcpServer
impl RefUnwindSafe for AcpServer
impl Send for AcpServer
impl Sync for AcpServer
impl Unpin for AcpServer
impl UnsafeUnpin for AcpServer
impl UnwindSafe for AcpServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.