pub struct GoalStore { /* private fields */ }Implementations§
Source§impl GoalStore
impl GoalStore
pub async fn get_thread_goal( &self, thread_id: ThreadId, ) -> Result<Option<ThreadGoal>>
pub async fn replace_thread_goal_snapshot( &self, goal: &ThreadGoal, ) -> Result<()>
pub async fn has_thread_goal_continuation_deferral( &self, thread_id: ThreadId, ) -> Result<bool>
pub async fn clear_thread_goal_continuation_deferral( &self, thread_id: ThreadId, ) -> Result<()>
pub async fn replace_thread_goal( &self, thread_id: ThreadId, objective: &str, status: ThreadGoalStatus, token_budget: Option<i64>, ) -> Result<ThreadGoal>
pub async fn insert_thread_goal( &self, thread_id: ThreadId, objective: &str, status: ThreadGoalStatus, token_budget: Option<i64>, ) -> Result<Option<ThreadGoal>>
pub async fn update_thread_goal( &self, thread_id: ThreadId, update: GoalUpdate, ) -> Result<Option<ThreadGoal>>
pub async fn pause_active_thread_goal( &self, thread_id: ThreadId, ) -> Result<Option<ThreadGoal>>
pub async fn usage_limit_active_thread_goal( &self, thread_id: ThreadId, ) -> Result<Option<ThreadGoal>>
pub async fn delete_thread_goal( &self, thread_id: ThreadId, ) -> Result<Option<ThreadGoal>>
pub async fn account_thread_goal_usage( &self, thread_id: ThreadId, time_delta_seconds: i64, token_delta: i64, mode: GoalAccountingMode, expected_goal_id: Option<&str>, ) -> Result<GoalAccountingOutcome>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GoalStore
impl !UnwindSafe for GoalStore
impl Freeze for GoalStore
impl Send for GoalStore
impl Sync for GoalStore
impl Unpin for GoalStore
impl UnsafeUnpin for GoalStore
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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