pub struct NewThread {
pub thread: Thread,
pub model: String,
pub model_provider: String,
pub cwd: PathBuf,
pub approval_policy: Option<String>,
pub sandbox: Option<String>,
}Expand description
Result of spawning or resuming a thread.
Fields§
§thread: ThreadThe thread metadata.
model: StringResolved model identifier.
model_provider: StringProvider that serves the model.
cwd: PathBufWorking directory for the thread.
approval_policy: Option<String>Approval policy override, if any.
sandbox: Option<String>Sandbox mode override, if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewThread
impl RefUnwindSafe for NewThread
impl Send for NewThread
impl Sync for NewThread
impl Unpin for NewThread
impl UnsafeUnpin for NewThread
impl UnwindSafe for NewThread
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