pub struct WorkflowRunAccess { /* private fields */ }Expand description
Server-owned access boundary for workflow runs. Session, workspace trust and capabilities are derived here rather than accepted from HTTP/tool callers.
Implementations§
Source§impl WorkflowRunAccess
impl WorkflowRunAccess
pub async fn new( data_dir: &Path, tools: Arc<dyn ToolExecutor>, skills: Arc<SkillManager>, sessions: SessionRepository, ) -> Result<Self, String>
pub async fn start( &self, session_id: &str, workflow_id: &str, revision: u64, args: Value, budget: Option<WorkflowBudgets>, ) -> Result<WorkflowRunSnapshot, WorkflowRunError>
pub async fn start_from_tool( &self, session_id: &str, workflow_id: &str, revision: u64, args: Value, budget: Option<WorkflowBudgets>, ) -> Result<WorkflowRunSnapshot, WorkflowRunError>
pub async fn list_for_session( &self, session_id: &str, ) -> Result<Vec<WorkflowRunSnapshot>, WorkflowRunError>
pub async fn progress_for_session( &self, session_id: &str, run_id: &str, since: u64, ) -> Result<WorkflowProgress, WorkflowRunError>
pub async fn cancel_for_session( &self, session_id: &str, run_id: &str, ) -> Result<WorkflowRunSnapshot, WorkflowRunError>
pub async fn restart_for_session( &self, session_id: &str, run_id: &str, ) -> Result<WorkflowRunSnapshot, WorkflowRunError>
pub async fn restart_from_tool( &self, session_id: &str, run_id: &str, ) -> Result<WorkflowRunSnapshot, WorkflowRunError>
Trait Implementations§
Source§impl Clone for WorkflowRunAccess
impl Clone for WorkflowRunAccess
Source§fn clone(&self) -> WorkflowRunAccess
fn clone(&self) -> WorkflowRunAccess
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for WorkflowRunAccess
impl !UnwindSafe for WorkflowRunAccess
impl Freeze for WorkflowRunAccess
impl Send for WorkflowRunAccess
impl Sync for WorkflowRunAccess
impl Unpin for WorkflowRunAccess
impl UnsafeUnpin for WorkflowRunAccess
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