pub struct NewTask {
pub title: String,
pub project_path: String,
pub model_id: String,
pub priority: TaskPriority,
pub conversation_id: Option<String>,
pub owner_kind: Option<String>,
pub prompt: Option<String>,
}Fields§
§title: String§project_path: String§model_id: String§priority: TaskPriority§conversation_id: Option<String>§owner_kind: Option<String>Which kind of process owns this task. Some("daemon") (set via
Self::daemon_owned) marks a task the daemon runs in-process, so the
startup reconcile may fail it if a crash left it Running. None — the
default, used by interactive CLI runs and any other creator — is left
untouched by reconcile so a live session isn’t clobbered (F18/RC-E).
prompt: Option<String>Full prompt for deferred execution by the daemon scheduler. Tasks without one are metadata-only and are never claimed.
Implementations§
Source§impl NewTask
impl NewTask
pub fn new( title: impl Into<String>, project_path: impl Into<String>, model_id: impl Into<String>, ) -> Self
Sourcepub fn daemon_owned(self) -> Self
pub fn daemon_owned(self) -> Self
Mark this task as daemon-owned (run in the daemon process). Only such
tasks are reset by RuntimeStore::reconcile_after_restart; omit it for
interactive CLI runs so they survive a daemon restart.
Sourcepub fn with_prompt(self, prompt: impl Into<String>) -> Self
pub fn with_prompt(self, prompt: impl Into<String>) -> Self
Persist the full prompt so the scheduler can execute this task later.
pub fn with_priority(self, priority: TaskPriority) -> Self
Trait Implementations§
impl Eq for NewTask
impl StructuralPartialEq for NewTask
Auto Trait Implementations§
impl Freeze for NewTask
impl RefUnwindSafe for NewTask
impl Send for NewTask
impl Sync for NewTask
impl Unpin for NewTask
impl UnsafeUnpin for NewTask
impl UnwindSafe for NewTask
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