pub struct FixedPrompt(pub Vec<PromptBlock>);Expand description
A prompt that is the same blocks every time and has no session context.
Tuple Fields§
§0: Vec<PromptBlock>Trait Implementations§
Source§impl ScenePrompt for FixedPrompt
impl ScenePrompt for FixedPrompt
fn system(&self, _ctx: &ScenePromptContext<'_>) -> Vec<PromptBlock>
Source§fn session_context(&self, _ctx: &ScenePromptContext<'_>) -> String
fn session_context(&self, _ctx: &ScenePromptContext<'_>) -> String
Facts about this session — working directory, platform, scratchpad —
sent once in the opening context message instead of the system prompt. Read more
Auto Trait Implementations§
impl Forget for FixedPrompt
impl Freeze for FixedPrompt
impl Move for FixedPrompt
impl RefUnwindSafe for FixedPrompt
impl Send for FixedPrompt
impl Sync for FixedPrompt
impl Unpin for FixedPrompt
impl UnsafeUnpin for FixedPrompt
impl UnwindSafe for FixedPrompt
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