pub struct PromptOptions {
pub expand_prompt_templates: bool,
pub streaming_behavior: Option<StreamingBehavior>,
pub images: Vec<ImageContent>,
pub source: InputSource,
}Expand description
pi’s PromptOptions for AgentSession::prompt_with. The default is
pi’s.
Fields§
§expand_prompt_templates: boolExtension commands run, and /skill: commands and prompt templates
expand. Without it they stay literal text, but input handlers still
run.
streaming_behavior: Option<StreamingBehavior>How the message queues while a run streams. Without one, that is an error.
images: Vec<ImageContent>Images sent with the text.
source: InputSourceWhere the message comes from, as input handlers see it.
Trait Implementations§
Source§impl Clone for PromptOptions
impl Clone for PromptOptions
Source§impl Debug for PromptOptions
impl Debug for PromptOptions
Source§impl Default for PromptOptions
impl Default for PromptOptions
Source§fn default() -> PromptOptions
fn default() -> PromptOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PromptOptions
impl RefUnwindSafe for PromptOptions
impl Send for PromptOptions
impl Sync for PromptOptions
impl Unpin for PromptOptions
impl UnsafeUnpin for PromptOptions
impl UnwindSafe for PromptOptions
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