pub struct SessionFlags {
pub system_prompt: Option<String>,
pub append_system_prompt: Option<Vec<String>>,
pub no_skills: bool,
pub no_context_files: bool,
pub skill_paths: Vec<String>,
}Fields§
§system_prompt: Option<String>§append_system_prompt: Option<Vec<String>>§no_skills: bool§no_context_files: bool§skill_paths: Vec<String>Implementations§
Source§impl SessionFlags
impl SessionFlags
Sourcepub fn from_worker_options(options: &Value) -> SessionFlags
pub fn from_worker_options(options: &Value) -> SessionFlags
The flags of a worker’s options (systemPrompt, appendSystemPrompt, noSkills, noContextFiles).
Sourcepub fn write_worker_options(&self, options: &mut Value)
pub fn write_worker_options(&self, options: &mut Value)
Sets the worker options keys of the flags that are set (the inverse of SessionFlags::from_worker_options).
Trait Implementations§
Source§impl Clone for SessionFlags
impl Clone for SessionFlags
Source§impl Debug for SessionFlags
impl Debug for SessionFlags
Source§impl Default for SessionFlags
impl Default for SessionFlags
impl Eq for SessionFlags
Source§impl PartialEq for SessionFlags
impl PartialEq for SessionFlags
impl StructuralPartialEq for SessionFlags
Auto Trait Implementations§
impl Forget for SessionFlags
impl Freeze for SessionFlags
impl Move for SessionFlags
impl RefUnwindSafe for SessionFlags
impl Send for SessionFlags
impl Sync for SessionFlags
impl Unpin for SessionFlags
impl UnsafeUnpin for SessionFlags
impl UnwindSafe for SessionFlags
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.