pub struct PreparedContext {
pub messages: MessageSequence,
pub prompt_contributions: Vec<PromptContribution>,
pub tool_providers: Vec<Arc<dyn ToolProvider>>,
pub include_base_tools: bool,
}Expand description
Output of the per-turn context transform pipeline — the messages, prompt contributions, and tool providers the runtime hands to the LLM call.
Fields§
§messages: MessageSequence§prompt_contributions: Vec<PromptContribution>§tool_providers: Vec<Arc<dyn ToolProvider>>§include_base_tools: boolTrait Implementations§
Source§impl Clone for PreparedContext
impl Clone for PreparedContext
Source§fn clone(&self) -> PreparedContext
fn clone(&self) -> PreparedContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for PreparedContext
impl !RefUnwindSafe for PreparedContext
impl !UnwindSafe for PreparedContext
impl Send for PreparedContext
impl Sync for PreparedContext
impl Unpin for PreparedContext
impl UnsafeUnpin for PreparedContext
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