pub struct RunInput<Deps> {
pub user_prompt: Vec<UserContent>,
pub message_history: Vec<ModelMessage>,
pub deps: Deps,
pub usage_limits: UsageLimits,
pub include_system_prompt: bool,
pub run_id: Option<String>,
}Fields§
§user_prompt: Vec<UserContent>§message_history: Vec<ModelMessage>§deps: Deps§usage_limits: UsageLimits§include_system_prompt: bool§run_id: Option<String>Implementations§
Source§impl<Deps> RunInput<Deps>
impl<Deps> RunInput<Deps>
pub fn new( user_prompt: Vec<UserContent>, message_history: Vec<ModelMessage>, deps: Deps, usage_limits: UsageLimits, ) -> Self
pub fn with_run_id(self, run_id: impl Into<String>) -> Self
pub fn builder(deps: Deps) -> RunInputBuilder<Deps, MissingPrompt>
Auto Trait Implementations§
impl<Deps> Freeze for RunInput<Deps>where
Deps: Freeze,
impl<Deps> RefUnwindSafe for RunInput<Deps>where
Deps: RefUnwindSafe,
impl<Deps> Send for RunInput<Deps>where
Deps: Send,
impl<Deps> Sync for RunInput<Deps>where
Deps: Sync,
impl<Deps> Unpin for RunInput<Deps>where
Deps: Unpin,
impl<Deps> UnwindSafe for RunInput<Deps>where
Deps: UnwindSafe,
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