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 resume(
&self,
params: FactoryResumeRequest,
) -> Result<FactoryResumeResult, Error>
pub async fn resume( &self, params: FactoryResumeRequest, ) -> Result<FactoryResumeResult, Error>
Resumes a factory run using its persisted name, arguments, journal, and accounting.
Wire method: session.factory.resume.
§Parameters
params- Parameters for resuming a factory run from its persisted identity.
§Returns
Resolved persisted factory identity and resumed 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 list_runs(&self) -> Result<FactoryListRunsResult, Error>
pub async fn list_runs(&self) -> Result<FactoryListRunsResult, Error>
Lists durable factory runs for this session in creation order.
Wire method: session.factory.listRuns.
§Returns
Factory runs in durable creation order.
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_detail(
&self,
params: FactoryGetRunRequest,
) -> Result<FactoryRunDetail, Error>
pub async fn get_run_detail( &self, params: FactoryGetRunRequest, ) -> Result<FactoryRunDetail, Error>
Gets durable and live observability detail for one factory run.
Wire method: session.factory.getRunDetail.
§Parameters
params- Parameters for retrieving a factory run.
§Returns
Full factory run observability detail.
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_progress(
&self,
params: FactoryGetRunProgressRequest,
) -> Result<FactoryProgressPage, Error>
pub async fn get_run_progress( &self, params: FactoryGetRunProgressRequest, ) -> Result<FactoryProgressPage, Error>
Pages durable progress for one factory run.
Wire method: session.factory.getRunProgress.
§Parameters
params- Parameters for paging factory progress.
§Returns
A bidirectional page of factory progress.
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