#[non_exhaustive]pub struct PromptContext {
pub cwd: PathBuf,
pub model: String,
pub session_id: String,
pub is_interactive: bool,
pub all_tool_names: Vec<String>,
pub allowed_agent_types: Vec<String>,
pub path_style: PathStyle,
pub layout: Layout,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cwd: PathBuf§model: String§session_id: String§is_interactive: bool§all_tool_names: Vec<String>§allowed_agent_types: Vec<String>§path_style: PathStyle§layout: LayoutThe instance’s names, for a guide that tells the model where something lives or what the product is called.
Trait Implementations§
Source§impl Clone for PromptContext
impl Clone for PromptContext
Source§impl Debug for PromptContext
impl Debug for PromptContext
Auto Trait Implementations§
impl Forget for PromptContext
impl Freeze for PromptContext
impl Move for PromptContext
impl RefUnwindSafe for PromptContext
impl Send for PromptContext
impl Sync for PromptContext
impl Unpin for PromptContext
impl UnsafeUnpin for PromptContext
impl UnwindSafe for PromptContext
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