pub enum PromptSpec {
Inline(String),
File(PathBuf),
}Expand description
Where an agent’s standing instructions come from.
Exactly one of the two forms must be given. Inline prompts are convenient for short
instructions; a prompt file is what allows conditional composition — see crate::prompt.
Variants§
Inline(String)
The prompt text, written directly in layover.toml.
File(PathBuf)
A path to a prompt file, resolved relative to the prompt root.
Trait Implementations§
Source§impl Clone for PromptSpec
impl Clone for PromptSpec
Source§impl Debug for PromptSpec
impl Debug for PromptSpec
impl Eq for PromptSpec
Source§impl PartialEq for PromptSpec
impl PartialEq for PromptSpec
impl StructuralPartialEq for PromptSpec
Auto Trait Implementations§
impl Freeze for PromptSpec
impl RefUnwindSafe for PromptSpec
impl Send for PromptSpec
impl Sync for PromptSpec
impl Unpin for PromptSpec
impl UnsafeUnpin for PromptSpec
impl UnwindSafe for PromptSpec
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