pub struct ClientRpcAgentRegistry<'a> { /* private fields */ }Expand description
agentRegistry.* RPCs.
Implementations§
Source§impl<'a> ClientRpcAgentRegistry<'a>
impl<'a> ClientRpcAgentRegistry<'a>
Sourcepub async fn spawn(
&self,
params: AgentRegistrySpawnRequest,
) -> Result<AgentRegistrySpawnResult, Error>
pub async fn spawn( &self, params: AgentRegistrySpawnRequest, ) -> Result<AgentRegistrySpawnResult, Error>
Spawns a managed-server child with the supplied configuration and returns a discriminated-union result. The caller (typically the CLI controller) is responsible for attaching to the spawned child and sending any follow-up prompt. When the controller-local spawn gate is closed the server returns JSON-RPC MethodNotFound.
Wire method: agentRegistry.spawn.
§Parameters
params- Inputs to spawn a managed-server child via the controller’s spawn delegate.
§Returns
Outcome of an agentRegistry.spawn call.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for ClientRpcAgentRegistry<'a>
impl<'a> Clone for ClientRpcAgentRegistry<'a>
Source§fn clone(&self) -> ClientRpcAgentRegistry<'a>
fn clone(&self) -> ClientRpcAgentRegistry<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ClientRpcAgentRegistry<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ClientRpcAgentRegistry<'a>
impl<'a> !UnwindSafe for ClientRpcAgentRegistry<'a>
impl<'a> Freeze for ClientRpcAgentRegistry<'a>
impl<'a> Send for ClientRpcAgentRegistry<'a>
impl<'a> Sync for ClientRpcAgentRegistry<'a>
impl<'a> Unpin for ClientRpcAgentRegistry<'a>
impl<'a> UnsafeUnpin for ClientRpcAgentRegistry<'a>
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