pub struct ExecutionStepRepository { /* private fields */ }Implementations§
Source§impl ExecutionStepRepository
impl ExecutionStepRepository
pub fn new(db: &DbPool) -> Result<Self>
pub async fn create(&self, step: &ExecutionStep) -> Result<()>
pub async fn get(&self, step_id: &StepId) -> Result<Option<ExecutionStep>>
pub async fn list_by_task(&self, task_id: &TaskId) -> Result<Vec<ExecutionStep>>
pub async fn complete_step( &self, step_id: &StepId, started_at: DateTime<Utc>, tool_result: Option<Value>, ) -> Result<()>
pub async fn fail_step( &self, step_id: &StepId, started_at: DateTime<Utc>, error_message: &str, ) -> Result<()>
pub async fn fail_in_progress_steps_for_task( &self, task_id: &TaskId, error_message: &str, ) -> Result<u64>
pub async fn complete_planning_step( &self, step_id: &StepId, started_at: DateTime<Utc>, reasoning: Option<String>, planned_tools: Option<Vec<PlannedTool>>, ) -> Result<ExecutionStep>
pub async fn mcp_execution_id_exists( &self, mcp_execution_id: &str, ) -> Result<bool>
Trait Implementations§
Source§impl Clone for ExecutionStepRepository
impl Clone for ExecutionStepRepository
Source§fn clone(&self) -> ExecutionStepRepository
fn clone(&self) -> ExecutionStepRepository
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for ExecutionStepRepository
impl !RefUnwindSafe for ExecutionStepRepository
impl Send for ExecutionStepRepository
impl Sync for ExecutionStepRepository
impl Unpin for ExecutionStepRepository
impl !UnwindSafe for ExecutionStepRepository
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more