pub struct RoutingAppServerClient { /* private fields */ }Expand description
Production router that dispatches app-server turns by model provider.
Implementations§
Source§impl RoutingAppServerClient
impl RoutingAppServerClient
Sourcepub fn new_with_clients(
codex_client: Arc<dyn AppServerClient>,
gemini_client: Arc<dyn AppServerClient>,
) -> Self
pub fn new_with_clients( codex_client: Arc<dyn AppServerClient>, gemini_client: Arc<dyn AppServerClient>, ) -> Self
Creates a router with injected provider clients.
Trait Implementations§
Source§impl AppServerClient for RoutingAppServerClient
impl AppServerClient for RoutingAppServerClient
Source§fn shutdown_session(&self, session_id: String) -> AppServerFuture<()>
fn shutdown_session(&self, session_id: String) -> AppServerFuture<()>
Shuts down the session on both provider clients concurrently so one slow backend cannot block cleanup of the other.
Source§fn run_turn(
&self,
request: AppServerTurnRequest,
stream_tx: UnboundedSender<AppServerStreamEvent>,
) -> AppServerFuture<Result<AppServerTurnResponse, AppServerError>>
fn run_turn( &self, request: AppServerTurnRequest, stream_tx: UnboundedSender<AppServerStreamEvent>, ) -> AppServerFuture<Result<AppServerTurnResponse, AppServerError>>
Executes one prompt turn for a session and returns normalized output. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for RoutingAppServerClient
impl !UnwindSafe for RoutingAppServerClient
impl Freeze for RoutingAppServerClient
impl Send for RoutingAppServerClient
impl Sync for RoutingAppServerClient
impl Unpin for RoutingAppServerClient
impl UnsafeUnpin for RoutingAppServerClient
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
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.