pub struct SessionRpcFactory<'a> { /* private fields */ }Expand description
session.factory.* RPCs.
Implementations§
Source§impl<'a> SessionRpcFactory<'a>
impl<'a> SessionRpcFactory<'a>
Sourcepub fn journal(&self) -> SessionRpcFactoryJournal<'a>
pub fn journal(&self) -> SessionRpcFactoryJournal<'a>
session.factory.journal.* sub-namespace.
Sourcepub async fn run(
&self,
params: FactoryRunRequest,
) -> Result<FactoryRunResult, Error>
pub async fn run( &self, params: FactoryRunRequest, ) -> Result<FactoryRunResult, Error>
Runs a registered factory by name at the top level.
Wire method: session.factory.run.
§Parameters
params- Parameters for invoking a registered factory.
§Returns
Complete current or terminal factory run envelope.
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.
Sourcepub async fn get_run(
&self,
params: FactoryGetRunRequest,
) -> Result<FactoryRunResult, Error>
pub async fn get_run( &self, params: FactoryGetRunRequest, ) -> Result<FactoryRunResult, Error>
Gets the current or settled envelope for a factory run.
Wire method: session.factory.getRun.
§Parameters
params- Parameters for retrieving a factory run.
§Returns
Complete current or terminal factory run envelope.
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.
Sourcepub async fn cancel(
&self,
params: FactoryCancelRequest,
) -> Result<FactoryRunResult, Error>
pub async fn cancel( &self, params: FactoryCancelRequest, ) -> Result<FactoryRunResult, Error>
Requests cancellation of a factory run and returns its run envelope.
Wire method: session.factory.cancel.
§Parameters
params- Parameters for cancelling a factory run.
§Returns
Complete current or terminal factory run envelope.
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.
Sourcepub async fn log(
&self,
params: FactoryLogRequest,
) -> Result<FactoryAckResult, Error>
pub async fn log( &self, params: FactoryLogRequest, ) -> Result<FactoryAckResult, Error>
Records a batch of ordered factory progress lines.
Wire method: session.factory.log.
§Parameters
params- Parameters for recording factory progress.
§Returns
Acknowledgement that a factory request was accepted.
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.
Sourcepub async fn agent(
&self,
params: FactoryAgentRequest,
) -> Result<FactoryAgentResult, Error>
pub async fn agent( &self, params: FactoryAgentRequest, ) -> Result<FactoryAgentResult, Error>
Runs one factory-scoped subagent and returns its result.
Wire method: session.factory.agent.
§Parameters
params- Parameters for one factory-scoped subagent call.
§Returns
Result of one factory-scoped subagent 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 SessionRpcFactory<'a>
impl<'a> Clone for SessionRpcFactory<'a>
Source§fn clone(&self) -> SessionRpcFactory<'a>
fn clone(&self) -> SessionRpcFactory<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more